"onTime above limit %dus", TOO_FAR_INTO_FUTURE_US
This commit is contained in:
parent
fc918ddd02
commit
f070382d6c
|
@ -83,6 +83,11 @@ static void runBench(brain_pin_e brainPin, OutputPin *output, float delayMs, flo
|
|||
int onTimeUs = MS2US(maxF(0.1, onTimeMs));
|
||||
int offTimeUs = MS2US(maxF(0.1, offTimeMs));
|
||||
|
||||
if (onTimeUs > TOO_FAR_INTO_FUTURE_US) {
|
||||
firmwareError(CUSTOM_ERR_6703, "onTime above limit %dus", TOO_FAR_INTO_FUTURE_US);
|
||||
return;
|
||||
}
|
||||
|
||||
scheduleMsg(logger, "Running bench: ON_TIME=%.2f us OFF_TIME=%.2f us Counter=%d", onTimeUs, offTimeUs, count);
|
||||
scheduleMsg(logger, "output on %s", hwPortname(brainPin));
|
||||
|
||||
|
|
Loading…
Reference in New Issue