Skip to content

Commit 7b75ca5

Browse files
jvandermey-evertzJF002
authored andcommitted
Fix compile warnings
1 parent 5744345 commit 7b75ca5

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/displayapp/screens/SystemInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ namespace {
2020
return "BMA421";
2121
case Pinetime::Controllers::MotionController::DeviceTypes::BMA425:
2222
return "BMA425";
23+
case Pinetime::Controllers::MotionController::DeviceTypes::Unknown:
24+
return "???";
2325
}
2426
return "???";
2527
}

src/libs/lv_conf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ typedef void* lv_img_decoder_user_data_t;
295295
#define LV_TICK_CUSTOM 1
296296
#if LV_TICK_CUSTOM == 1
297297
#define LV_TICK_CUSTOM_INCLUDE "FreeRTOS.h" /*Header for the system time function*/
298+
uint32_t xTaskGetTickCount(); /*Forward declare to avoid compiler warning*/
298299
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (xTaskGetTickCount()) /*Expression evaluating to current system time in ms*/
299300
#endif /*LV_TICK_CUSTOM*/
300301

0 commit comments

Comments
 (0)