Rev 770 | Rev 1635 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 770 | Rev 1634 | ||
|---|---|---|---|
| Line 115... | Line 115... | ||
| 115 | uint id = cp.getId(); |
115 | uint id = cp.getId(); |
| 116 | if (HWID_INUSE) { |
116 | if (HWID_INUSE) { |
| 117 | byte[] data = cp.getData(); |
117 | byte[] data = cp.getData(); |
| 118 | if ((id&0x00FF0000) == (CAN_NMT_BIOS_START<<16) && data[4]==((hwid)&0xff) && data[5]==((hwid>>8)&0xff) && data[6]==((hwid>>16)&0xff) && data[7]==((hwid>>24)&0xff)) { |
118 | if ((id&0x00FF0000) == (CAN_NMT_BIOS_START<<16) && data[4]==((hwid)&0xff) && data[5]==((hwid>>8)&0xff) && data[6]==((hwid>>16)&0xff) && data[7]==((hwid>>24)&0xff)) { |
| 119 | returnval = true; |
119 | returnval = true; |
| 120 | string appinfo = " |
120 | string appinfo = "application installed"; |
| 121 | if (data[2] == 0) { |
121 | if (data[2] == 0) { |
| 122 | appinfo = " |
122 | appinfo = "no application installed"; |
| 123 | } |
123 | } |
| - | 124 | if (data[3]==0) { |
|
| - | 125 | appinfo += ", device type unkown"; |
|
| - | 126 | } |
|
| 124 | if (data[3]!=0 |
127 | if (data[3]!=0) { |
| 125 | appinfo += ", |
128 | appinfo += ", device type "+data[3]; |
| 126 | } |
129 | } |
| 127 | Console.WriteLine("Bios started on node 0x" + String.Format("{0:x2}", sender) + |
130 | Console.WriteLine("Bios started on node 0x" + String.Format("{0:x2}", sender) + |
| 128 | ", bios version 0x" + String.Format("{0:x2}", data[1]) + String.Format("{0:x2}", data[0]) + |
131 | ", bios version 0x" + String.Format("{0:x2}", data[1]) + String.Format("{0:x2}", data[0]) + |
| 129 | ", " + appinfo |
132 | ", " + appinfo |
| 130 | ); |
133 | ); |