fix: Fix function signatures for WPM.
* Recent refactor accidentally used the wrong signatures for a few WPM function definitions.
This commit is contained in:
parent
cebf651d11
commit
12bc8b0402
1 changed files with 2 additions and 2 deletions
|
@ -68,11 +68,11 @@ void wpm_work_handler(struct k_work *work) {
|
||||||
|
|
||||||
K_WORK_DEFINE(wpm_work, wpm_work_handler);
|
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);
|
K_TIMER_DEFINE(wpm_timer, wpm_expiry_function, NULL);
|
||||||
|
|
||||||
int wpm_init(void) {
|
int wpm_init(const struct device *_device) {
|
||||||
wpm_state = 0;
|
wpm_state = 0;
|
||||||
wpm_update_counter = 0;
|
wpm_update_counter = 0;
|
||||||
k_timer_start(&wpm_timer, K_SECONDS(WPM_UPDATE_INTERVAL_SECONDS),
|
k_timer_start(&wpm_timer, K_SECONDS(WPM_UPDATE_INTERVAL_SECONDS),
|
||||||
|
|
Loading…
Add table
Reference in a new issue