Skip to content

Commit d0450bc

Browse files
authored
Merge pull request #2228 from liamcottle/refactor/gat562-mesh-watch
Refactor GAT562 Mesh Watch
2 parents b934daa + b37201d commit d0450bc

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

variants/gat562_mesh_watch13/GAT56MeshWatch13Board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class GAT56MeshWatch13Board : public NRF52BoardDCDC {
3535

3636

3737
void powerOff() override {
38-
uint32_t button_pin = PIN_BUTTON2;
38+
uint32_t button_pin = PIN_BUTTON1;
3939
nrf_gpio_cfg_input(button_pin, NRF_GPIO_PIN_PULLUP);
4040
nrf_gpio_cfg_sense_set(button_pin, NRF_GPIO_PIN_SENSE_LOW);
4141
sd_power_system_off();

variants/gat562_mesh_watch13/target.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ GAT56MeshWatch13Board board;
1111

1212
#ifdef DISPLAY_CLASS
1313
DISPLAY_CLASS display;
14-
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, false);
15-
MomentaryButton back_btn(PIN_BACK_BTN, 1000, true, false, true);
14+
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, true);
1615
#endif
1716

1817

variants/gat562_mesh_watch13/target.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
extern DISPLAY_CLASS display;
1414
#include <helpers/ui/MomentaryButton.h>
1515
extern MomentaryButton user_btn;
16-
extern MomentaryButton back_btn;
1716
#endif
1817

1918
#ifdef PIN_VIBRATION

0 commit comments

Comments
 (0)