فهرست منبع

Added temp unit switch in temp printer

Victor 3 سال پیش
والد
کامیت
2176452755
4فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. BIN
      assets/arrow_up_7x13.png
  2. BIN
      assets/mm_hg_17x15.png
  3. BIN
      assets/temp_F_11x14.png
  4. 4 1
      views/General_view.c

BIN
assets/arrow_up_7x13.png


BIN
assets/mm_hg_17x15.png


BIN
assets/temp_F_11x14.png


+ 4 - 1
views/General_view.c

@@ -19,7 +19,10 @@ static void _draw_temp(Canvas* canvas, float temp, uint8_t pos) {
 
 
     //Рисование иконки
     //Рисование иконки
     canvas_draw_icon(
     canvas_draw_icon(
-        canvas, temp_positions[pos][0] + 3, temp_positions[pos][1] + 3, &I_temp_C_11x14);
+        canvas,
+        temp_positions[pos][0] + 3,
+        temp_positions[pos][1] + 3,
+        (app->settings.unit == CELSIUS ? &I_temp_C_11x14 : &I_temp_F_11x14));
 
 
     if((int8_t)temp == -128) {
     if((int8_t)temp == -128) {
         snprintf(buff, 5, "--");
         snprintf(buff, 5, "--");