From 4f22ff6184a131684b27016b1c5009dc4d10093b Mon Sep 17 00:00:00 2001 From: ruti <> Date: Sun, 8 Sep 2024 00:58:12 +0300 Subject: [PATCH] fix ANTOHS macros #117 --- packets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packets.c b/packets.c index 989164f..3e04482 100644 --- a/packets.c +++ b/packets.c @@ -15,7 +15,7 @@ #endif #define ANTOHS(data, i) \ - (uint16_t)((data[i] << 8) + (uint8_t)data[i + 1]) + (((uint16_t)data[i] << 8) + (uint8_t)data[i + 1]) #define SHTONA(data, i, x) \ data[i] = (uint8_t)((x) >> 8); \