Faster enginePins.stopPins() #3070

refactoring: reducing magic constants
This commit is contained in:
rusefillc 2021-07-28 14:14:51 -04:00
parent f08c59c8e6
commit caea5283ae
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ float Timer::getElapsedSeconds() const {
}
float Timer::getElapsedSeconds(efitick_t nowNt) const {
return 1e-6 * getElapsedUs(nowNt);
return 1 / US_PER_SECOND_F * getElapsedUs(nowNt);
}
float Timer::getElapsedUs(efitick_t nowNt) const {