From b6b14d69f753e5441658ca75d96061e9c904c5cb Mon Sep 17 00:00:00 2001 From: bsongis Date: Sat, 14 Mar 2015 22:52:21 +0100 Subject: [PATCH] VC++ compilation fix --- radio/src/targets/mega2560/board_mega2560.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/src/targets/mega2560/board_mega2560.cpp b/radio/src/targets/mega2560/board_mega2560.cpp index 39cfd09e9..4dd09ff69 100644 --- a/radio/src/targets/mega2560/board_mega2560.cpp +++ b/radio/src/targets/mega2560/board_mega2560.cpp @@ -100,7 +100,7 @@ uint8_t pwrCheck() void pwrOff() { - PORTH = 0b11101111; // PortH-4 set to 0 + PORTH = 0x1F; // PortH-4 set to 0 } FORCEINLINE uint8_t keyDown() @@ -185,8 +185,8 @@ FORCEINLINE void readKeysAndTrims() { uint8_t enuk = KEY_MENU; - keys[BTN_REa].input(~PINJ & 0b00000001); - keys[BTN_REb].input(~PINJ & 0b00000010); + keys[BTN_REa].input(~PINJ & 0x01); + keys[BTN_REb].input(~PINJ & 0x02); uint8_t tin = ~PINL; uint8_t in;