Skip to content

Commit e994b40

Browse files
authored
Merge pull request #2 from SampleEnvironment/dev
Dev
2 parents 3ab0cf9 + 55c05ec commit e994b40

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

DispAdapter.c

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ void displayTemPreVol(void){
396396
}
397397
else
398398
{
399-
paint_Value( ((double)options.Temperature_value) - 2732,TEMP, 1, 4, "°C");
399+
paint_Value( ((double)options.Temperature_value) - 2732,TEMP, 1, 6, "°C");
400400
}
401401
}
402402
else{
@@ -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)