Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
ShishkinDmitriy committed Sep 17, 2024
1 parent 4d3f13a commit b891cb8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/KeyboardAdapter/KeyboardAdapter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

#include <ItemInputCharset.h>
#include <LcdMenu.h>
#include <interface/LiquidCrystalI2CAdapter.h>
#include <input/KeyboardAdapter.h>
#include <interface/LiquidCrystalI2CAdapter.h>

#define LCD_ROWS 2
#define LCD_COLS 16
Expand Down
2 changes: 1 addition & 1 deletion src/ItemCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ItemCommand : public MenuItem {
}
}

protected:
protected:
bool enter() {
if (callback != NULL) {
callback();
Expand Down
2 changes: 1 addition & 1 deletion src/ItemInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class ItemInput : public MenuItem {
display->drawItem(row, text, ':', buf);
}

protected:
protected:
bool enter() {
if (display->getEditModeEnabled()) {
return false;
Expand Down
3 changes: 1 addition & 2 deletions src/ItemInputCharset.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ItemInputCharset : public ItemInput {
}
}

protected:
protected:
bool enter() {
if (!display->getEditModeEnabled()) {
return ItemInput::enter();
Expand Down Expand Up @@ -137,7 +137,6 @@ class ItemInputCharset : public ItemInput {
display->drawChar(charset[charsetPosition]);
return true;
}

};

#define ITEM_INPUT_CHARSET(...) (new ItemInputCharset(__VA_ARGS__))
Expand Down
1 change: 0 additions & 1 deletion src/ItemList.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ class ItemList : public MenuItem {
}
return true;
};

};

#define ITEM_STRING_LIST(...) (new ItemList(__VA_ARGS__))
Expand Down
7 changes: 3 additions & 4 deletions src/ItemToggle.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ class ItemToggle : public MenuItem {
display->drawItem(row, text, ':', buf);
};

bool process(const unsigned char c) override {
switch(c) {
bool process(const unsigned char c) override {
switch (c) {
case ENTER: return enter();
default: return false;
}
};

protected:
bool enter() {
enabled = !enabled;
Expand All @@ -99,7 +99,6 @@ class ItemToggle : public MenuItem {
MenuItem::draw();
return true;
};

};

#define ITEM_TOGGLE(...) (new ItemToggle(__VA_ARGS__))
Expand Down

0 comments on commit b891cb8

Please sign in to comment.