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:
parent
8ed7d6db71
commit
dbb8c45a9f
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user