fix shtona macros

This commit is contained in:
ruti 2024-08-06 13:54:07 +03:00
parent 4ca7fab3dd
commit 0e155f6de7

View File

@ -18,8 +18,8 @@
(uint16_t)((data[i] << 8) + (uint8_t)data[i + 1])
#define SHTONA(data, i, x) \
data[i] = (uint8_t)(x >> 8); \
data[i + 1] = x & 0xff;
data[i] = (uint8_t)((x) >> 8); \
data[i + 1] = ((x) & 0xff)
char tls_data[517] = {