Skip to content

Commit

Permalink
fix simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Sep 26, 2024
1 parent 79d64e0 commit a14f4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/controllers/bench_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ struct BenchParams {
};

static void runBench(BenchParams& params) {
int onTimeUs = MS2US(std::max(0.1, params.OnTimeMs));
int offTimeUs = MS2US(std::max(0.1, params.OffTimeMs));
int onTimeUs = MS2US(std::max(0.1f, params.OnTimeMs));
int offTimeUs = MS2US(std::max(0.1f, params.OffTimeMs));

if (onTimeUs > TOO_FAR_INTO_FUTURE_US) {
firmwareError(ObdCode::CUSTOM_ERR_BENCH_PARAM, "onTime above limit %dus", TOO_FAR_INTO_FUTURE_US);
Expand Down

0 comments on commit a14f4a1

Please sign in to comment.