[rtttl] Pack state_ after wholenote_duration_ (#20151)

This commit is contained in:
J. Nick Koston
2026-10-05 09:25:28 +13:00
committed by GitHub
parent 52fc5f2c75
commit 7421b165e8
+2 -2
View File
@@ -82,14 +82,14 @@ class Rtttl final : public Component {
uint16_t note_duration_{0};
/// The duration of a whole note in milliseconds.
uint16_t wholenote_duration_;
/// The current state of the RTTTL player.
State state_{State::STOPPED};
/// The time in milliseconds since microcontroller boot when the last note was started.
uint32_t last_note_start_time_;
/// The frequency of the current note in Hz.
uint32_t output_freq_{0};
/// The gain of the output.
float gain_{0.6f};
/// The current state of the RTTTL player.
State state_{State::STOPPED};
#ifdef USE_OUTPUT
/// The output to write the sound to.