fix ANTOHS macros

#117
This commit is contained in:
ruti 2024-09-08 00:58:12 +03:00
parent 2e244fd1b8
commit 4f22ff6184

View File

@ -15,7 +15,7 @@
#endif #endif
#define ANTOHS(data, i) \ #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) \ #define SHTONA(data, i, x) \
data[i] = (uint8_t)((x) >> 8); \ data[i] = (uint8_t)((x) >> 8); \