t0mg / wordclock

ESP32 based DIY word clock project
Apache License 2.0
66 stars 11 forks source link

Crashes when compiled with recent version of IDE #7

Closed tjfsteele closed 9 months ago

tjfsteele commented 9 months ago

When executed, code crashes in Iot::updateClockFromParams_()

Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.

Fix is to add return value; to setSensorSensitivity() in Display.h. I have submitted a pull request.

  // Sets the sensor sentivity of the brightness controller.
  int setSensorSentivity(int value)
  {
    _brightnessController.setSensorSensitivity(value);
    return value;
  }
t0mg commented 9 months ago

Thanks for the PR :)