int16_t v_pbatt; /* 6 */
int16_t n_sense; /* 8 */
int16_t sense[10]; /* 10 */
- } volt; /* 30 */
+ uint16_t pyro; /* 30 */
+ } volt; /* 32 */
/* AO_LOG_GPS_TIME */
struct {
int32_t latitude; /* 4 */
} 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