Chamber heating using hysteresis in Marlin Is anyone using hysteresis with their chamber in Marlin?

I have read bang-bang with hysteresis is possible when using a bed heater. I would like to do that for chamber heating. I have some lamps that can't keep flicking on and off so rapidly around a setpoint - this causes the bulb to die out faster and the noise is annoying.

Steps to Reproduce:


Start with fresh Marlin Firmware bugfix 2.0
Enable chamber temperature in Configuration.h (TEMP_CHAMBER_PIN 1)
Set chamber hysteresis value to 2 in Confgiuration_adv.h (#define TEMP_CHAMBER_HYSTERESIS     2). Enable #define CHAMBER_LIMIT_SWITCHING in Configuration_adv.h. Decide on pin to use for your heater, if necessary


Expected behavior: I would like, when I set my chamber to 30&nbsp;&deg;C, the chamber lamps to come on until 32&nbsp;&deg;C, and to stay off until 28&nbsp;&deg;C.

Actual behavior: chamber heater lamps flick on and off at 30&nbsp;&deg;C (29.9 - on, 30.1 - off).
It does work, but you need to reset EEPROM memory once updating the firmware, if you had it enabled, so the values are transferred into the EEPROM and subsequently used.

To reset  EEPROM, send the following command in your 3d printer terminal.

M502

Then, save the firmware default settings

M500