Rename pm_1p0 to pm1p0.

This commit is contained in:
2023-07-14 11:36:03 -07:00
parent 16a0af1b24
commit 5a8f44cd48

View File

@@ -26,13 +26,13 @@ LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
enum { LCD_WIDTH = 16, LCD_HEIGHT = 2 }; enum { LCD_WIDTH = 16, LCD_HEIGHT = 2 };
// Supported values to be displayed on the LCD. // Supported values to be displayed on the LCD.
enum supported_vals { pm_1p0, pm2p5, pm4p0, pm10p0, voc, hum, temp, f_temp, empty }; enum supported_vals { pm1p0, pm2p5, pm4p0, pm10p0, voc, hum, temp, f_temp, empty };
// Values per screen. values[0...] is considered a screen and values[][0...] // Values per screen. values[0...] is considered a screen and values[][0...]
// are its values. // are its values.
enum supported_vals values[][4] = { enum supported_vals values[][4] = {
{temp, f_temp, hum, voc}, {temp, f_temp, hum, voc},
{pm_1p0, pm2p5, pm4p0, pm10p0}, {pm1p0, pm2p5, pm4p0, pm10p0},
}; };
// Screens and values counts. // Screens and values counts.
@@ -174,7 +174,7 @@ void update_screen(void)
for (int f = 0; f < VALUES_COUNT; f++) { for (int f = 0; f < VALUES_COUNT; f++) {
lcd.setCursor(col, row); lcd.setCursor(col, row);
switch (values[current_screen][f]) { switch (values[current_screen][f]) {
case pm_1p0: case pm1p0:
lcd.print("01: "); lcd.print("01: ");
lcd.print(sen44_mes.pm1p0); lcd.print(sen44_mes.pm1p0);
break; break;