mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 20:17:30 +02:00
ioscript/ioscript: allow positions to be redefined
For that purpose, we reset the mapping each time a new set of definitions is encountered.
This commit is contained in:
parent
8816dcfa3c
commit
b4530ffc4d
@ -57,6 +57,7 @@ while (<>) {
|
|||||||
s/#.*//;
|
s/#.*//;
|
||||||
next if /^\s*$/;
|
next if /^\s*$/;
|
||||||
if (/^\S+,(\S+,)*\S+/) {
|
if (/^\S+,(\S+,)*\S+/) {
|
||||||
|
@pos = ();
|
||||||
for (split /,/) {
|
for (split /,/) {
|
||||||
die "unknown bit \"$_\"" unless defined $bit{$_};
|
die "unknown bit \"$_\"" unless defined $bit{$_};
|
||||||
push(@pos, $_);
|
push(@pos, $_);
|
||||||
|
Loading…
Reference in New Issue
Block a user