Skip to content

Commit

Permalink
Remove RE_F0_FLAGS_SEQ_INVALID (#65)
Browse files Browse the repository at this point in the history
* Remove RE_F0_FLAGS_SEQ_INVALID

* Update unit-test
  • Loading branch information
TheSomeMan authored Dec 4, 2024
1 parent b72e510 commit f56e6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/ruuvi_endpoint_f0.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions test/test_ruuvi_endpoint_f0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] =
Expand All @@ -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;
Expand Down

0 comments on commit f56e6eb

Please sign in to comment.