Skip to content

Commit 69eb707

Browse files
committed
forgotten bluepill
1 parent 67248d8 commit 69eb707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/current_sense/hardware_specific/stm32/stm32f1/stm32f1_mcu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void* _driverSyncLowSide(void* _driver_params, void* _cs_params){
5353
Stm32CurrentSenseParams* cs_params = (Stm32CurrentSenseParams*)_cs_params;
5454

5555
// if compatible timer has not been found
56-
if (cs_params->timer_handle == NULL) return;
56+
if (cs_params->timer_handle == NULL) return SIMPLEFOC_CURRENT_SENSE_INIT_FAILED;
5757

5858
// stop all the timers for the driver
5959
_stopTimers(driver_params->timers, 6);

0 commit comments

Comments
 (0)