add chgmode support for gta01
git-svn-id: http://www.neo1973-germany.de/svn@220 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
ef2c1a7312
commit
46850c4f63
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class DialerScreen(EdjeGroup):
|
|||
PyneoController.register_callback("battvolt_change", self.on_battvolt_change)
|
||||
|
||||
def on_battvolt_change(self, battvolt, chgmode):
|
||||
if chgmode == "play-only":
|
||||
if chgmode == "play-only" or chgmode == "idle":
|
||||
EdjeGroup.color_class_set(self, "battvolt_active", 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0)
|
||||
else:
|
||||
EdjeGroup.color_class_set(self, "battvolt_active", 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0)
|
||||
|
|
Loading…
Reference in a new issue