From 054cf1c2a433c87b7caee503c28db2b7005d1060 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 29 Jun 2022 10:35:58 +0200 Subject: fix order receiving --- shared/bin.c | 8 ++++---- shared/errcatch.h | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'shared') diff --git a/shared/bin.c b/shared/bin.c index a0937e8..9d67bec 100644 --- a/shared/bin.c +++ b/shared/bin.c @@ -10,10 +10,10 @@ #define _SHIFT_1B (8 * 1) #define _SHIFT_2B (8 * 2) #define _SHIFT_3B (8 * 3) -#define _BYTE_0 ((uint32_t)(0xff << (_SHIFT_0B))) -#define _BYTE_1 ((uint32_t)(0xff << (_SHIFT_1B))) -#define _BYTE_2 ((uint32_t)(0xff << (_SHIFT_2B))) -#define _BYTE_3 ((uint32_t)(0xff << (_SHIFT_3B))) +#define _BYTE_0 ((uint32_t) 0xff << (_SHIFT_0B)) +#define _BYTE_1 ((uint32_t) 0xff << (_SHIFT_1B)) +#define _BYTE_2 ((uint32_t) 0xff << (_SHIFT_2B)) +#define _BYTE_3 ((uint32_t) 0xff << (_SHIFT_3B)) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshift-count-overflow" diff --git a/shared/errcatch.h b/shared/errcatch.h index a56bc00..b14379d 100644 --- a/shared/errcatch.h +++ b/shared/errcatch.h @@ -54,6 +54,9 @@ typedef enum { W2_E_WARN_MODE_HISTORY_BUFFER_IOB = 0x0a | W2_E_TYPE_WARN, /** ping timeout reached */ W2_E_WARN_PING_TIMEOUT = 0x0b | W2_E_TYPE_WARN, + + /** order reached */ + W2_E_INFO_ORDER_ARRIVED = 0x00 | W2_E_TYPE_INFO, } w2_e_errorcode; /** -- cgit v1.2.3