Skip to content

Commit

Permalink
report blade ID often when log level 500 (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoSloppy authored Sep 29, 2024
1 parent 200cc38 commit 64e6cc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions props/prop_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -587,11 +587,11 @@ class PropBase : CommandParser, Looper, protected SaberBase, public ModeInterfac
uint32_t now = millis();
if (now - last_scan_id_ > BLADE_ID_SCAN_MILLIS) {
last_scan_id_ = now;
size_t best_config = FindBestConfig();
size_t best_config = FindBestConfig(PROFFIEOS_LOG_LEVEL >= 500);
if (current_config != blades + best_config) {
// We can't call FindBladeAgain right away because
// we're called from the blade. Wait until next loop() call.
find_blade_again_pending_ = true;
// We can't call FindBladeAgain right away because
// we're called from the blade. Wait until next loop() call.
find_blade_again_pending_ = true;
}
return true;
}
Expand Down

0 comments on commit 64e6cc4

Please sign in to comment.