Skip to content

Commit 55c05ec

Browse files
author
Peter Wegmann
committed
bug fix
1 parent 06bf709 commit 55c05ec

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

DispAdapter.c

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,13 @@ void displayTemPreVol(void){
586586
if (!(options.T_Compensation_enable && (CHECK_ERROR(TEMPPRESS_ERROR))))
587587
{
588588
LCD_Clear_row_from_column(2, 3);
589-
LCD_Value((int32_t) options.Temperature_value - 2732, 1, 2, 3, "°C");
589+
590+
if (!options.T_Compensation_enable && !connected.BMP)
591+
{
592+
LCD_String("/",3,3);
593+
}else{
594+
LCD_Value((int32_t) options.Temperature_value - 2732, 1, 2, 3, "°C");
595+
}
590596
}
591597
else{
592598
LCD_Clear_row_from_column(2, 3);
@@ -598,7 +604,12 @@ void displayTemPreVol(void){
598604
if(!(options.p_Compensation_enable && (CHECK_ERROR(TEMPPRESS_ERROR))))
599605
{
600606
LCD_Clear_row_from_column(2, 4);
601-
LCD_Value(options.Pressure_value, 1, 2, 4, "mbar");
607+
if (!options.p_Compensation_enable && !connected.BMP)
608+
{
609+
LCD_String("/",3,4);
610+
}else{
611+
LCD_Value(options.Pressure_value, 1, 2, 4, "mbar");
612+
}
602613
}
603614
else{
604615
LCD_Clear_row_from_column(2, 3);

0 commit comments

Comments
 (0)