Skip to content

Commit 04e4a57

Browse files
committed
Replace 'const int' with 'static int constexpr'.
1 parent 1f4d857 commit 04e4a57

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Braccio++.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ class BraccioClass
8787
void motorConnectedThreadFunc();
8888

8989

90-
const int BTN_LEFT = 3;
91-
const int BTN_RIGHT = 4;
92-
const int BTN_UP = 5;
93-
const int BTN_DOWN = 2;
94-
const int BTN_SEL = A0;
95-
const int BTN_ENTER = A1;
90+
static int constexpr BTN_LEFT = 3;
91+
static int constexpr BTN_RIGHT = 4;
92+
static int constexpr BTN_UP = 5;
93+
static int constexpr BTN_DOWN = 2;
94+
static int constexpr BTN_SEL = A0;
95+
static int constexpr BTN_ENTER = A1;
96+
9697

9798
static size_t constexpr LVGL_DRAW_BUFFER_SIZE = 240 * 240 / 10;
9899

0 commit comments

Comments
 (0)