pkerspe / ESP-FlexyStepper

This library is used to control one or more stepper motors from an ESP32 device. It is based on the FlexyStepper library by S.Reifel but provides some additional functionality
MIT License
150 stars 32 forks source link

disableCore1WDT() in ESP32-S2 #43

Open pmth opened 5 months ago

pmth commented 5 months ago

I am getting compilation error on missing disableCore1WDT(). I'm using ESP32-S2 and I believe there is only 1 core for this module.

bool ESP_FlexyStepper::startAsService(int coreNumber)
{

  if (coreNumber == 1)
  {
    //disableCore1WDT(); // we have to disable the Watchdog timer to prevent it from rebooting the ESP all the time another option would be to add a vTaskDelay but it would slow down the stepper
  }
  else if (coreNumber == 0)
  {
    disableCore0WDT(); // we have to disable the Watchdog timer to prevent it from rebooting the ESP all the time another option would be to add a vTaskDelay but it would slow down the stepper
  }
  else
  {
    // invalid core number given
    return false;
  }