summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/ao_log.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/ao_log.h b/src/core/ao_log.h
index 95b37649..e1461a14 100644
--- a/src/core/ao_log.h
+++ b/src/core/ao_log.h
@@ -289,12 +289,11 @@ struct ao_log_mini {
} u; /* 16 */
}; /* 16 */
-static inline void
-ao_log_pack24(uint8_t *dst, uint32_t value) {
- dst[0] = value;
- dst[1] = value >> 8;
- dst[2] = value >> 16;
-}
+#define ao_log_pack24(dst,value) do { \
+ (dst)[0] = (value); \
+ (dst)[1] = (value) >> 8; \
+ (dst)[2] = (value) >> 16; \
+ } while (0)
/* Write a record to the eeprom log */
uint8_t