Merge pull request #330 from dalathegreat/improvement/compiler-warnings

Improvement: Compiler warnings
This commit is contained in:
Daniel Öster 2024-06-04 18:04:33 +03:00 committed by GitHub
commit 8664c817c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 29 additions and 24 deletions

View file

@ -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