Доработки и рефакторинг

This commit is contained in:
2025-11-04 23:12:25 +03:00
parent 5c70316df7
commit b530a60de2
12 changed files with 128 additions and 52 deletions

View File

@@ -61,7 +61,7 @@ int coil_state = 0;
int coil_real_state = 0;
void master_callback(RS_HandleTypeDef *hmodbus, RS_MsgTypeDef *msg)
{
if(MB_GetCoilState(msg, coil_to_toggle, &coil_real_state))
if(MB_RespGet_CoilState(msg, coil_to_toggle, &coil_real_state))
{
coil_state = coil_real_state;
}