handle GPIO2 and GPIO3
This commit is contained in:
parent
8a3d1e80bb
commit
6c94aad9b2
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user