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:
fgau 2008-12-27 22:55:43 +00:00
parent ef2c1a7312
commit 46850c4f63

View file

@ -30,7 +30,7 @@ class DialerScreen(EdjeGroup):
PyneoController.register_callback("battvolt_change", self.on_battvolt_change) PyneoController.register_callback("battvolt_change", self.on_battvolt_change)
def on_battvolt_change(self, battvolt, chgmode): 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) EdjeGroup.color_class_set(self, "battvolt_active", 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0)
else: else:
EdjeGroup.color_class_set(self, "battvolt_active", 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0) EdjeGroup.color_class_set(self, "battvolt_active", 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0)