code beautifying

This commit is contained in:
Martin Brodbeck 2024-02-19 12:10:42 +01:00
parent 8f855aa3b9
commit d86525473a
4 changed files with 16 additions and 16 deletions

View file

@ -186,7 +186,7 @@ SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Default SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true SpaceBeforeInheritanceColon: true
SpaceBeforeJsonColon: false SpaceBeforeJsonColon: false

View file

@ -25,19 +25,19 @@ class Keyer final
Abort, Abort,
}; };
uint8_t m_wpm{18}; uint8_t m_wpm {18};
Mode m_mode{Mode::IAMBIC_B}; Mode m_mode {Mode::IAMBIC_B};
absolute_time_t m_keying_until{0}; absolute_time_t m_keying_until {0};
absolute_time_t m_pausing_until{0}; absolute_time_t m_pausing_until {0};
Sidetone m_buzzer; Sidetone m_buzzer;
Sidetone m_audioOut; Sidetone m_audioOut;
State m_state{State::Wait}; State m_state {State::Wait};
State m_previousState{State::Wait}; State m_previousState {State::Wait};
uint64_t m_elementDuration{0}; uint64_t m_elementDuration {0};
bool m_currentlyKeying{false}; bool m_currentlyKeying {false};
bool m_currentlyPausing{false}; bool m_currentlyPausing {false};
bool m_keyNextIambicB{false}; bool m_keyNextIambicB {false};
}; };

View file

@ -10,10 +10,10 @@ enum class Mode : uint8_t {
}; };
struct Settings { struct Settings {
uint16_t magic_number{MAGIC_NUMBER}; // Bytes: 2 uint16_t magic_number {MAGIC_NUMBER}; // Bytes: 2
Mode mode{Mode::IAMBIC_B}; // Bytes: 1 Mode mode {Mode::IAMBIC_B}; // Bytes: 1
uint8_t wpm{18}; // Bytes: 1 uint8_t wpm {18}; // Bytes: 1
uint8_t dummy[FLASH_PAGE_SIZE - 4]{0}; // Sum : 4 uint8_t dummy[FLASH_PAGE_SIZE - 4] {0}; // Sum : 4
}; };
void store_settings(Settings &settings); void store_settings(Settings &settings);

View file

@ -9,5 +9,5 @@ class Sidetone
void off(); void off();
private: private:
uint m_gpio{0}; uint m_gpio {0};
}; };