Fix AlertsModule when too much alerts to display
This commit is contained in:
parent
2530fb4649
commit
8be48bb062
2
main.py
2
main.py
@ -180,7 +180,7 @@ def main(only_on_coming_evt=False, ignore_module=[], force_coming_event=True, ex
|
||||
image.paste(WeatherTemperatureModule().draw_module(config, 480, 200), (0, 580))
|
||||
|
||||
if expand_alerts and more_alerts > 0:
|
||||
mod, more_alerts = AlertsModule(alerts, ignore_module).draw_module(config, 480, 785 - NEXT_STOP_Y - occuped_space)
|
||||
mod, more_alerts = AlertsModule(config, alerts, ignore_module).draw_module(config, 480, 785 - NEXT_STOP_Y - occuped_space)
|
||||
image.paste(mod, (0, NEXT_STOP_Y + occuped_space), mod)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user