Index: squeezeplay_baby/share/applets/SqueezeboxBaby/SqueezeboxBabyApplet.lua =================================================================== --- squeezeplay_baby/share/applets/SqueezeboxBaby/SqueezeboxBabyApplet.lua (revision 7718) +++ squeezeplay_baby/share/applets/SqueezeboxBaby/SqueezeboxBabyApplet.lua (working copy) @@ -217,7 +217,22 @@ -- find out when we connect to player jnt:subscribe(self) - playSplashSound(self) + local now = os.time() + local alarmTime = sysReadNumber(self, "alarm_time") + + -- FIXME before 19 January 2038 (Y2K38) + if (alarmTime > 0 and (alarmTime < now)) then + log:info("supress splash sound, alarm wakeup") + + -- XXXX it would be better to change the mcu to clear + -- the alarm time: + -- + -- clear the alarm time, otherwise the system can't be + -- powered down + sysWrite(self, "alarm_time", "4294967295") + else + playSplashSound(self) + end end --called during the configure portion of applet initialization