Skip to content
Snippets Groups Projects
Commit 75d7800d authored by David Sidrane's avatar David Sidrane Committed by Lorenz Meier
Browse files

samv7:tone_alarm cleanup

parent 1306e288
No related branches found
No related tags found
No related merge requests found
......@@ -388,13 +388,7 @@ void ToneAlarm::next_note()
if (updated) {
orb_copy(ORB_ID(tune_control), _tune_control_sub, &_tune);
if (_tunes.set_control(_tune) == 0) {
_play_tone = true;
} else {
_play_tone = false;
}
_play_tone = _tunes.set_control(_tune) == 0;
}
unsigned frequency = 0, duration = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment