Mercurial > public > ostc4
diff Discovery/Src/tMenuEditSystem.c @ 103:f5d2f02dc73f kittz
Generalize TEXT of pressure unit
author | Dmitry Romanov <kitt@bk.ru> |
---|---|
date | Wed, 28 Nov 2018 09:36:33 +0300 |
parents | 4276d56eb37c |
children | ee7f2cd9b9b4 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSystem.c Tue Nov 27 18:31:21 2018 +0100 +++ b/Discovery/Src/tMenuEditSystem.c Wed Nov 28 09:36:33 2018 +0300 @@ -1237,7 +1237,7 @@ write_label_var( 20, 800, ME_Y_LINE4, &FontT42, text_content); offsetTemperature = ((float)settingsGetPointer()->offsetTemperature_centigrad) / 10; - snprintf(text_content,80,"%i hPa / %0.2f\140C",settingsGetPointer()->offsetPressure_mbar, offsetTemperature); + snprintf(text_content,80,"%i %s / %0.2f\140C",settingsGetPointer()->offsetPressure_mbar, TEXT_PRESSURE_UNIT, offsetTemperature); write_label_var( 20, 800, ME_Y_LINE5, &FontT42, text_content); text_button[0] = TXT_2BYTE;