mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-22 06:15:14 +00:00
parent
2e244fd1b8
commit
4f22ff6184
@ -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); \
|
||||||
|
Loading…
Reference in New Issue
Block a user