meterbus state machine

This commit is contained in:
Wolfgang Hottgenroth 2020-11-02 19:50:28 +01:00
parent 8f81672266
commit 669eca760a
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -53,11 +53,11 @@ static t_mbusCommHandle mbusCommHandle = { .state = MBCS_IDLE, .retryCnt = 0, .c
static void printFrame(t_longframe *frame) {
logMsg("%02x %02x %02x %02x, C:%02x A:%02x CI:%02x",
logMsg("frame: %02x %02x %02x %02x, C:%02x A:%02x CI:%02x",
frame->start1, frame->length1, frame->length2, frame->start2,
frame->c, frame->a, frame->ci);
logMsg("userdata ...");
logMsg("CHKSUM:%02x %02x\n", frame->chksum, frame->stop);
logMsg("frame: userdata ...");
logMsg("frame: CHKSUM:%02x %02x", frame->chksum, frame->stop);
}
static void handleRequestEngine(void *handle);