From d34f63e4eb2b7f0f8b8804f5f04e4608357e833d Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Wed, 1 Jun 2022 22:02:25 -0500 Subject: [PATCH] Change private type names to conform to style guide Signed-off-by: Michael Richters --- .../src/kaleidoscope/plugin/EEPROM-Settings.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/plugins/Kaleidoscope-EEPROM-Settings/src/kaleidoscope/plugin/EEPROM-Settings.h b/plugins/Kaleidoscope-EEPROM-Settings/src/kaleidoscope/plugin/EEPROM-Settings.h index 32bb5363..efcc236a 100644 --- a/plugins/Kaleidoscope-EEPROM-Settings/src/kaleidoscope/plugin/EEPROM-Settings.h +++ b/plugins/Kaleidoscope-EEPROM-Settings/src/kaleidoscope/plugin/EEPROM-Settings.h @@ -25,6 +25,14 @@ namespace kaleidoscope { namespace plugin { class EEPROMSettings : public kaleidoscope::Plugin { + private: + struct Settings { + uint8_t default_layer : 7; + bool ignore_hardcoded_layers : 1; + uint8_t version; + uint16_t crc; + }; + public: EventHandlerResult onSetup(); EventHandlerResult beforeEachCycle(); @@ -67,16 +75,11 @@ class EEPROMSettings : public kaleidoscope::Plugin { private: static constexpr uint8_t IGNORE_HARDCODED_LAYER = 0x7e; - uint16_t next_start_ = sizeof(EEPROMSettings::settings); + uint16_t next_start_ = sizeof(EEPROMSettings::Settings); bool is_valid_; bool sealed_; - struct settings { - uint8_t default_layer : 7; - bool ignore_hardcoded_layers : 1; - uint8_t version; - uint16_t crc; - } settings_; + Settings settings_; }; class FocusSettingsCommand : public kaleidoscope::Plugin {