1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

disable ESP32 code that is not used

This commit is contained in:
Harald Barth 2022-08-09 16:26:48 +02:00
parent ecda69ba32
commit e1fd6e9414

View File

@ -87,6 +87,8 @@ INTERRUPT_CALLBACK interruptHandler=0;
portMUX_TYPE timerMux = portMUX_INITIALIZER_UNLOCKED;
void DCCTimer::begin(INTERRUPT_CALLBACK callback) {
// This should not be called on ESP32 so disable it
return;
interruptHandler = callback;
hw_timer_t *timer = NULL;
timer = timerBegin(0, 2, true); // prescaler can be 2 to 65536 so choose 2