Browse Source

Added cancel button in buttons list

master
Robin Thoni 4 years ago
parent
commit
4eafb91dac
Signed by: Robin THONI <robin@rthoni.com> GPG Key ID: 4E09DEF46B99E61E
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      AppCore.cpp
  2. 1
    1
      AppCore.h

+ 1
- 1
AppCore.cpp View File

@@ -56,7 +56,7 @@ AppCore::AppCore()
56 56
           , m_pBtnOk(new Button{PIN_BTN_OK})
57 57
           , m_pBtnMinus(new Button{PIN_BTN_MINUS})
58 58
           , m_pBtnPlus(new Button{PIN_BTN_PLUS})
59
-          , m_pButtons{m_pBtnOk, m_pBtnMinus, m_pBtnPlus}
59
+          , m_pButtons{m_pBtnCancel, m_pBtnOk, m_pBtnMinus, m_pBtnPlus}
60 60
           , m_pLcd(new LiquidCrystal{PIN_LCD_RS, PIN_LCD_ENABLE, PIN_LCD_D4, PIN_LCD_D5, PIN_LCD_D6, PIN_LCD_D7})
61 61
           , m_pOneWire(new OneWire{PIN_ONEWIRE})
62 62
           , m_pSensors(new DallasTemperature{m_pOneWire})

+ 1
- 1
AppCore.h View File

@@ -48,7 +48,7 @@ private:
48 48
     Button* m_pBtnOk;
49 49
     Button* m_pBtnMinus;
50 50
     Button* m_pBtnPlus;
51
-    Button* m_pButtons[3];
51
+    Button* m_pButtons[4];
52 52
 
53 53
     LiquidCrystal* m_pLcd;
54 54
 

Loading…
Cancel
Save