Fixed light brightness adaptation steps per second

This commit is contained in:
Kai Lauterbach 2023-05-19 11:07:25 +02:00
parent 6b6a1e1658
commit ec30fa512b
3 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -25,7 +25,7 @@
#define EEPROM_NM_ADDRESS (EEPROM_GW_ADDRESS + 4) // step 4 byte further GW
#define EEPROM_DNS_ADDRESS (EEPROM_NM_ADDRESS + 4) // step 4 byte further NM
#define BRI_MOD_STEPS_PER_SEC 25
#define BRI_MOD_STEPS_PER_SEC 5 // 1000ms / 40ms delay in loop / 4 functions called separately by FSM => 6.25 calls of the tc update function per second maximum => 5 step should be ok
#define TIME_CHECK_INTERVAL_MS (60000UL) // 60 second interval
#define TIME_LIGHTENGINE_INTERVAL_MS (1000UL / BRI_MOD_STEPS_PER_SEC) // BRI_MOD_STEPS_PER_SEC steps per second to in-/decrease the brightness