add index option to burn-mac and changes burn-macs to use burn-mac.

This commit is contained in:
Mariano Alvira 2011-05-23 13:46:41 -04:00
parent 0d1cc63b04
commit be19096937
2 changed files with 5 additions and 2 deletions

View file

@ -44,7 +44,8 @@ for (my $t=0; $t<$terms; $t++) {
my $word2 = sprintf("%02X%02X%02X%02X",$words[0],$words[1],$words[2],$words[3]);
my $ftdi_num = $terms - $t - 1;
my $cmd = "mc1322x-load.pl -e -f $bin -z -t /dev/ttyUSB$dev_num -c 'bbmc -l redbee-econotag -i $ftdi_num reset' $addr,0x$word1,0x$word2 &";
my $cmd = "../burn-mac.pl --iab=a8c --term=/dev/ttyUSB$dev_num --index=$ftdi_num $bin $dev_num";
print "$cmd\n";
system($cmd);
}