Доработки и рефакторинг
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user