1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-20 09:09:02 +00:00

fixup! feat(core): Add max backlight limit to backlight driver. [no changelog]

This commit is contained in:
kopecdav 2025-04-18 14:55:17 +02:00
parent 55a14d672d
commit fa2f0cbabf
2 changed files with 1 additions and 4 deletions

View File

@ -57,11 +57,7 @@ int backlight_set(int val);
// Returns 0 if the backlight driver is not initialized.
int backlight_get(void);
#ifdef TREZOR_MODEL_T3W1
// Set maximal backlight limit, limits the requested level to max_level value.
//
// Returns 0 if the backlight driver is not initialized.
int backlight_set_max_level(int max_level);
#endif

View File

@ -158,6 +158,7 @@ void backlight_init(backlight_action_t action) {
// Default no backlight max_level limit
drv->max_level = BACKLIGHT_MAX_LEVEL;
drv->requested_level = BACKLIGHT_MIN_LEVEL;
drv->initialized = true;
}