1
0
mirror of synced 2024-11-14 09:47:40 +01:00

handle GPIO2 and GPIO3

This commit is contained in:
Bottersnike 2023-03-30 04:53:53 +01:00
parent 8a3d1e80bb
commit 6c94aad9b2
No known key found for this signature in database

View File

@ -253,6 +253,16 @@ unsigned char jvs_exchange(jvs_board_t* board, unsigned char* inData, short inCo
// log_warning(plfMxJvs, "Unhandled GPIO write: *(%d) = %02x", i, gpio_value); // log_warning(plfMxJvs, "Unhandled GPIO write: *(%d) = %02x", i, gpio_value);
} }
break; break;
case JVS_CMD_WRITE_GPIO2:
case JVS_CMD_WRITE_GPIO3:
jvs_write(JVS_REPORT_OK);
unsigned char gpioByteIndex;
unsigned char gpioByteData;
jvs_read(gpioByteIndex);
jvs_read(gpioByteData);
log_warning(plfMxJvs, "GPIO%d Unhandled: [%02x]=%02x",
(cmd - JVS_CMD_WRITE_GPIO2) + 1, gpioByteIndex, gpioByteData);
break;
case JVS_CMD_COIN_DECREASE: case JVS_CMD_COIN_DECREASE:
jvs_write(JVS_REPORT_OK); jvs_write(JVS_REPORT_OK);