NoSloppy

Untitled

May 4th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #ifdef BC_STAB_ON
  2. case EVENTID(BUTTON_NONE, EVENT_STAB, MODE_OFF):
  3. // Delay Stab On at boot
  4. if (millis() - saber_off_time_ > 1000) {
  5. #ifdef STAB_ON_PREON
  6. SaberBase::DoPreOn(&preon_time);
  7. if (preon_time > 0.0) {
  8. on_pending_ = true;
  9. on_pending_base_ = millis();
  10. on_pending_delay_ = preon_time * 1000;
  11. } else {
  12. SaberBase::TurnOn();
  13. }
  14. #else
  15. FastOn();
  16. #ifdef BC_GESTURE_AUTO_BATTLE_MODE
  17. STDOUT.println("Entering Battle Mode");
  18. battle_mode_ = true;
  19. #endif
  20. }
  21. return true;
  22. #endif // BC_STAB_ON
  23. #endif // STAB_ON_PREON
Advertisement
Add Comment
Please, Sign In to add comment