Use K_MSEC macro in k_sleep calls

This is required by Zephyr 2.3, otherwise getting compile error.
This commit is contained in:
Martin Jäger
2020-05-11 12:26:41 +02:00
parent 9a5004e81d
commit 1bd8734a2e
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -314,7 +314,7 @@ void daq_setup()
k_timer_init(&adc_trigger_timer, adc_trigger_conversion, NULL);
k_timer_start(&adc_trigger_timer, K_MSEC(1), K_MSEC(1)); // 1 kHz
k_sleep(500); // wait for ADC to collect some measurement values
k_sleep(K_MSEC(500)); // wait for ADC to collect some measurement values
daq_update();
calibrate_current_sensors();
}