Skip to content

Commit 176d2be

Browse files
committed
fix compile
1 parent 2d1141b commit 176d2be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/HFIBLDCMotor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define LOWPASS( output, input, c_lowpass) (output += (c_lowpass) * ((input) - (output)))
44

55
#ifndef SWAP_HILO
6-
#define SWAP_HILO = true // true for ESP32
6+
#define SWAP_HILO true // true for ESP32
77
#endif
88
extern int** trap_120_map;
99
extern int** trap_150_map;

src/current_sense/hardware_specific/esp32/esp32_mcu.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static void IRAM_ATTR mcpwm0_isr_handler(void*){
195195
portEXIT_CRITICAL_ISR(&fpuInISRMutex);
196196

197197
#endif
198-
}
198+
199199
// low side
200200
MCPWM0.int_clr.timer0_tep_int_clr = mcpwm_intr_status_low;
201201
// high side
@@ -214,7 +214,7 @@ static void IRAM_ATTR mcpwm1_isr_handler(void*){
214214

215215

216216
bool runadc = mcpwm_intr_status_high || mcpwm_intr_status_low;
217-
217+
218218
if(runadc){
219219
#if _I2S_ADC == true
220220
readFiFo();
@@ -248,7 +248,7 @@ static void IRAM_ATTR mcpwm1_isr_handler(void*){
248248
portEXIT_CRITICAL_ISR(&fpuInISRMutex);
249249

250250
#endif
251-
}
251+
252252
// low side
253253
MCPWM1.int_clr.timer0_tep_int_clr = mcpwm_intr_status_low;
254254
// high side

0 commit comments

Comments
 (0)