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:
parent
55a14d672d
commit
fa2f0cbabf
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user