handle GPIO2 and GPIO3

This commit is contained in:
Bottersnike 2023-03-30 04:53:53 +01:00
parent 8a3d1e80bb
commit 6c94aad9b2
Signed by: Bottersnike
SSH Key Fingerprint: SHA256:3g0ghwd4dNX1k1RX8qazbiT+3RIYn/daeBevHZVCiU0
1 changed files with 10 additions and 0 deletions

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);
}
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:
jvs_write(JVS_REPORT_OK);