mrrwa/NmraDcc

ESP32 build error

murarduino opened this issue · 0 comments

I try to build an ESP32 DCC based on NMRADCC, it seems that there are some problems in the interrupt definition part, how should I solve it?

src\NmraDcc.cpp: In function 'void ExternalInterruptHandler()':
src\NmraDcc.cpp:369:26: warning: unused variable 'DCC_IrqRunning' [-Wunused-variable]
static byte halfBit, DCC_IrqRunning, preambleBitCount;
^
src\motor_ctrl.cpp: In function 'int MOTOR_GetBEMF()':
src\motor_ctrl.cpp:367:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
aAve = aAve + analogRead(MOTOR_READ) >> 2;
^
src\motor_ctrl.cpp:388:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^