skip coin locker bits range in usbStart lamp tests

This commit is contained in:
Omni
2022-07-01 21:04:43 +02:00
parent 16a5febffb
commit 03c86102de
2 changed files with 5 additions and 16 deletions
BIN
View File
Binary file not shown.
+5 -16
View File
@@ -334,22 +334,11 @@ __declspec(dllexport) int __cdecl usbStart(int i) {
g_dip_state |= 0x08;
#endif
/* light up each part of the cab in a wave pattern to get visual confirmation the device is working */
// light neons
for (int i = 0; i<=4; i++){
controller_write_leds((uint32_t) ((1 << i) | (0xF << 16)));
Sleep(300);
}
// light side lamps
for (int i = 8; i<=11; i++){
controller_write_leds((uint32_t) ((1 << i) | (0xF << 16)));
Sleep(300);
}
// light on coin blocker
controller_write_leds((uint32_t) 0x00000000);
Sleep(1000);
// light buttons
for (int i = 23; i<=31; i++){
controller_write_leds((uint32_t) ((1 << i) | (0xF << 16)));
for (int i = 0; i<=31; i++){
if ((i > 4 && i < 8) || (i > 11 && i < 23)) { // unused bits
continue;
}
controller_write_leds((uint32_t) 1 << i);
Sleep(300);
}