mrrwa / NmraDcc

NMRA Digital Command Control (DCC) Library
GNU Lesser General Public License v2.1
135 stars 53 forks source link

ESP32 build error #62

Closed murarduino closed 1 year ago

murarduino commented 2 years ago

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] } ^