From f56e6eb048b28a4798afefab01298b17a13e0800 Mon Sep 17 00:00:00 2001 From: TheSomeMan Date: Wed, 4 Dec 2024 19:11:52 +0700 Subject: [PATCH] Remove RE_F0_FLAGS_SEQ_INVALID (#65) * Remove RE_F0_FLAGS_SEQ_INVALID * Update unit-test --- src/ruuvi_endpoint_f0.h | 1 - test/test_ruuvi_endpoint_f0.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ruuvi_endpoint_f0.h b/src/ruuvi_endpoint_f0.h index 316d78e..f1267d0 100644 --- a/src/ruuvi_endpoint_f0.h +++ b/src/ruuvi_endpoint_f0.h @@ -27,7 +27,6 @@ #define RE_F0_FLAGS_SEQ_MASK (0x0FU) #define RE_F0_FLAGS_SEQ_OFFSET (4U) -#define RE_F0_FLAGS_SEQ_INVALID (0x0FU) #define RE_F0_FLAGS_USB_ON (0x01U) #define RE_F0_FLAGS_LOW_BATTERY (0x02U) #define RE_F0_FLAGS_CALIBRATION_IN_PROGRESS (0x04U) diff --git a/test/test_ruuvi_endpoint_f0.c b/test/test_ruuvi_endpoint_f0.c index 4a734c2..6a13af3 100644 --- a/test/test_ruuvi_endpoint_f0.c +++ b/test/test_ruuvi_endpoint_f0.c @@ -320,7 +320,7 @@ void test_ruuvi_endpoint_f0_get_invalid_data (void) .flag_low_battery = false, .flag_calibration_in_progress = false, .flag_boost_mode = false, - .flag_seq_cnt = RE_F0_FLAGS_SEQ_INVALID, + .flag_seq_cnt = 0, .address = 0xFFFFFFFFFFFF, }; static const uint8_t invalid_data[] = @@ -338,7 +338,7 @@ void test_ruuvi_endpoint_f0_get_invalid_data (void) 0xFF, // NOX 0xFF, // Luminosity 0xFF, // Sound avg - 0xF0, // Flags + 0x00, // Flags 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; re_status_t err_code = RE_SUCCESS;