Skip to content

Commit

Permalink
fix indentation and a missing "return true"
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed May 7, 2020
1 parent 20c38b5 commit 98f3a69
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions props/saber.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ class Saber : public PropBase {
#endif
return true;

// Handle double-click with preon
// Handle double-click with preon
case EVENTID(BUTTON_POWER, EVENT_DOUBLE_CLICK, MODE_OFF):
if (on_pending_) {
if (on_pending_) {
if (SetMute(true)) {
unmute_on_deactivation_ = true;
}
return true;
}
return false;
return true;
}
return false;

case EVENTID(BUTTON_POWER, EVENT_DOUBLE_CLICK, MODE_ON):
if (millis() - activated_ < 500) {
if (SetMute(true)) {
Expand Down Expand Up @@ -120,7 +120,7 @@ class Saber : public PropBase {
#ifndef DISABLE_COLOR_CHANGE
case EVENTID(BUTTON_POWER, EVENT_CLICK_SHORT, MODE_ON | BUTTON_AUX):
ToggleColorChangeMode();
break;
return true;
#endif

// Lockup
Expand All @@ -138,9 +138,9 @@ class Saber : public PropBase {
break;

case EVENTID(BUTTON_AUX, EVENT_CLICK_SHORT, MODE_ON | BUTTON_POWER):
SaberBase::SetLockup(SaberBase::LOCKUP_LIGHTNING_BLOCK);
SaberBase::DoBeginLockup();
return true;
SaberBase::SetLockup(SaberBase::LOCKUP_LIGHTNING_BLOCK);
SaberBase::DoBeginLockup();
return true;

case EVENTID(BUTTON_NONE, EVENT_STAB, MODE_ON | BUTTON_POWER):
case EVENTID(BUTTON_NONE, EVENT_STAB, MODE_ON | BUTTON_AUX):
Expand Down

0 comments on commit 98f3a69

Please sign in to comment.