1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-23 19:55:19 +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:
Werner Almesberger 2012-12-17 14:41:23 -03:00
parent 8816dcfa3c
commit b4530ffc4d

View File

@ -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, $_);