mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Merge pull request #330 from dalathegreat/improvement/compiler-warnings
Improvement: Compiler warnings
This commit is contained in:
commit
8664c817c4
8 changed files with 29 additions and 24 deletions
|
@ -192,12 +192,8 @@ void core_loop(void* task_time_us) {
|
|||
TickType_t xLastWakeTime = xTaskGetTickCount();
|
||||
const TickType_t xFrequency = pdMS_TO_TICKS(1); // Convert 1ms to ticks
|
||||
led_init();
|
||||
int64_t prev_wake;
|
||||
|
||||
while (true) {
|
||||
int64_t now = esp_timer_get_time();
|
||||
int64_t wake_period = now - prev_wake;
|
||||
prev_wake = now;
|
||||
START_TIME_MEASUREMENT(all);
|
||||
START_TIME_MEASUREMENT(comm);
|
||||
// Input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue