Skip to content

Commit

Permalink
Return early if already set
Browse files Browse the repository at this point in the history
  • Loading branch information
steadramon committed Aug 4, 2024
1 parent d14fadd commit af8816b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ESPGeiger/src/Radmon/Radmon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Radmon::Radmon() {
}

void Radmon::setInterval(int interval) {
if (interval * 1000 == pingInterval) {
return;
}
if (interval > RADMON_INTERVAL_MAX) {
interval = RADMON_INTERVAL_MAX;
}
Expand Down

0 comments on commit af8816b

Please sign in to comment.