1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-01-31 12:13:42 +01:00

H44B drv: add missed deinit code, comments

This commit is contained in:
Will Toohey 2021-04-06 20:19:19 +10:00
parent 8ed7d6db71
commit dbb8c45a9f
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,8 @@ bool aciodrv_h44b_init(
struct aciodrv_device_ctx *device,
uint8_t node_id)
{
// unlike input devices like KFCA, H44B has no watchdog or special init code
// requirements - shared ACIO node initialisation is enough
return true;
}
@ -24,6 +26,7 @@ bool aciodrv_h44b_lights(
struct ac_io_message msg;
log_assert(device);
log_assert(lights);
msg.addr = node_id + 1;
msg.cmd.code = ac_io_u16(AC_IO_H44B_CMD_SET_OUTPUTS);

View File

@ -76,6 +76,8 @@ bool jb_io_h44b_init(const char *port, int32_t baud) {
}
bool jb_io_h44b_fini(void) {
aciomgr_port_fini(acio_manager_ctx);
return true;
}