Skip to content

Commit

Permalink
projects/03app_lh2_mini_mote_*: fix timer API misuse
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Jun 5, 2024
1 parent caca543 commit befcd79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/03app_lh2_mini_mote_app/03app_lh2_mini_mote_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static void _turn_off_led(void) {
static void radio_callback(uint8_t *pkt, uint8_t len) {
(void)len;

_dotbot_vars.ts_last_packet_received = db_timer_ticks();
_dotbot_vars.ts_last_packet_received = db_timer_hf_now(0);
uint8_t *ptk_ptr = pkt;
protocol_header_t *header = (protocol_header_t *)ptk_ptr;
// Check destination address matches
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static void _set_rgb_led(void) {
static void radio_callback(uint8_t *pkt, uint8_t len) {
(void)len;

_dotbot_vars.ts_last_packet_received = db_timer_ticks(0);
_dotbot_vars.ts_last_packet_received = db_timer_hf_now(0);
uint8_t *ptk_ptr = pkt;
protocol_header_t *header = (protocol_header_t *)ptk_ptr;
// Check destination address matches
Expand Down

0 comments on commit befcd79

Please sign in to comment.