From 49927a25cf7ba048be1b9e523c1c1a051f420e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Tue, 16 Jun 2020 20:05:32 +0200 Subject: [PATCH] Add Omega as unit for Ohm in LCD menu --- stm-firmware/include/reflow-controller/ui/lcd.h | 2 ++ stm-firmware/reflow-menu.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stm-firmware/include/reflow-controller/ui/lcd.h b/stm-firmware/include/reflow-controller/ui/lcd.h index a8f8f2a..efb2532 100644 --- a/stm-firmware/include/reflow-controller/ui/lcd.h +++ b/stm-firmware/include/reflow-controller/ui/lcd.h @@ -39,6 +39,8 @@ #define LCD_SHIMATTA_STRING "\xBC\xCF\xAF\xC0" #define LCD_DEGREE_SYMBOL_STRING "\xDF" #define LCD_DEGREE_SYMBOL_CHAR '\xDF' +#define LCD_OHM_SYMBOL_CHAR '\xF4' +#define LCD_OHM_SYMBOL_STRING "\xF4" enum lcd_fsm_ret {LCD_FSM_NOP, LCD_FSM_CALL_AGAIN, LCD_FSM_WAIT_CALL}; diff --git a/stm-firmware/reflow-menu.c b/stm-firmware/reflow-menu.c index 4320cce..05984af 100644 --- a/stm-firmware/reflow-menu.c +++ b/stm-firmware/reflow-menu.c @@ -71,7 +71,7 @@ static void reflow_menu_monitor(struct lcd_menu *menu, enum menu_entry_func_entr if (systick_ticks_have_passed(my_timestamp, 250)) { my_timestamp = systick_get_global_tick(); adc_pt1000_get_current_resistance(&tmp); - snprintf(line, sizeof(line), "Res: %.1f", tmp); + snprintf(line, sizeof(line), "Res: %.1f " LCD_OHM_SYMBOL_STRING, tmp); menu->update_display(0, line); res = temp_converter_convert_resistance_to_temp(tmp, &tmp);