mirror of https://github.com/FOME-Tech/fome-fw.git
code style
This commit is contained in:
parent
62eb905e38
commit
6486d89201
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue