You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Extract the warnings and alarms field (bytes 4 and 5 of the message). */
72
+
uint16_twarnings_and_alarms=0;
73
+
memcpy(&warnings_and_alarms, &message->data[4], 2); // Copy over two bytes of the message, starting at byte 4. This should result in byte 4 and byte 5 being copied over.
74
+
75
+
/* Get all the bit states from the register. */
76
+
booldevice_error_active=_GET_BIT(warnings_and_alarms, 0); // true = device error active
0 commit comments