Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
206 | ligi | 1 | |
2 | Dir["*.hex"].each { |f| |
||
3 | |||
4 | case |
||
5 | when f=~ /Navi/ |
||
6 | `ruby hex2bin.rb #{f} /home/ligi/prj/DUBwise/j2me/res/firmwares/all_firmwares/navi.bin` |
||
7 | |||
8 | p "written nc" |
||
9 | |||
10 | |||
11 | when f =~ /Flight/ |
||
12 | `ruby hex2bin.rb #{f} /home/ligi/prj/DUBwise/j2me/res/firmwares/all_firmwares/fc.bin` |
||
13 | p "written fc" |
||
14 | |||
15 | when f =~ /MK3Ma/ |
||
16 | `ruby hex2bin.rb #{f} /home/ligi/prj/DUBwise/j2me/res/firmwares/all_firmwares/mk3.bin` |
||
17 | p "written mk3" |
||
18 | |||
19 | else |
||
20 | p "cant handle" + f |
||
21 | |||
22 | end |
||
23 | |||
24 | } |