mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 23:56:13 +01:00
disable ESP32 code that is not used
This commit is contained in:
parent
ecda69ba32
commit
e1fd6e9414
|
@ -87,6 +87,8 @@ INTERRUPT_CALLBACK interruptHandler=0;
|
||||||
portMUX_TYPE timerMux = portMUX_INITIALIZER_UNLOCKED;
|
portMUX_TYPE timerMux = portMUX_INITIALIZER_UNLOCKED;
|
||||||
|
|
||||||
void DCCTimer::begin(INTERRUPT_CALLBACK callback) {
|
void DCCTimer::begin(INTERRUPT_CALLBACK callback) {
|
||||||
|
// This should not be called on ESP32 so disable it
|
||||||
|
return;
|
||||||
interruptHandler = callback;
|
interruptHandler = callback;
|
||||||
hw_timer_t *timer = NULL;
|
hw_timer_t *timer = NULL;
|
||||||
timer = timerBegin(0, 2, true); // prescaler can be 2 to 65536 so choose 2
|
timer = timerBegin(0, 2, true); // prescaler can be 2 to 65536 so choose 2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user