Skip to content

Commit

Permalink
fix: Fix function signatures for WPM.
Browse files Browse the repository at this point in the history
* Recent refactor accidentally used the wrong signatures for a few
  WPM function definitions.
  • Loading branch information
petejohanson committed Jan 5, 2024
1 parent 395ffaa commit 46cb924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/wpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ void wpm_work_handler(struct k_work *work) {

K_WORK_DEFINE(wpm_work, wpm_work_handler);

void wpm_expiry_function(void) { k_work_submit(&wpm_work); }
void wpm_expiry_function(struct k_timer *_timer) { k_work_submit(&wpm_work); }

K_TIMER_DEFINE(wpm_timer, wpm_expiry_function, NULL);

int wpm_init(void) {
int wpm_init(const struct device *_device) {
wpm_state = 0;
wpm_update_counter = 0;
k_timer_start(&wpm_timer, K_SECONDS(WPM_UPDATE_INTERVAL_SECONDS),
Expand Down

0 comments on commit 46cb924

Please sign in to comment.