code style

This commit is contained in:
rusefi 2018-05-31 00:32:55 -04:00
parent 18a589a0b7
commit ee2d39a127
1 changed files with 2 additions and 1 deletions

View File

@ -70,8 +70,9 @@ void setHardwareUsTimer(int32_t timeUs) {
return;
}
if (GPTDEVICE.state == GPT_ONESHOT)
if (GPTDEVICE.state == GPT_ONESHOT) {
gptStopTimerI(&GPTDEVICE);
}
if (GPTDEVICE.state != GPT_READY) {
firmwareError(CUSTOM_ERR_6541, "HW timer state %d", GPTDEVICE.state);
return;