[tuxdroid-svn] r309 - firmware/tuxaudio/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-05-10 16:44:54
|
Author: jaguarondi Date: 2007-05-10 18:44:53 +0200 (Thu, 10 May 2007) New Revision: 309 Modified: firmware/tuxaudio/trunk/main.c Log: - BUG: SLEEP_ACK_CMD was not set correctly. Modified: firmware/tuxaudio/trunk/main.c =================================================================== --- firmware/tuxaudio/trunk/main.c 2007-05-10 16:41:08 UTC (rev 308) +++ firmware/tuxaudio/trunk/main.c 2007-05-10 16:44:53 UTC (rev 309) @@ -137,9 +137,9 @@ else if (audioBuf[0] == SLEEP_CMD) { sleep_flg = 1; /* handle sleep in its own function */ - audioBuf[0] |= SLEEP_ACK_CMD; /* go to sleep mode and acknowledge it */ - audioBuf[2] |= SLEEP_ACK_MK; /* go to sleep mode and acknowledge it */ /* Forwards the command to the rf CPU */ + audioBuf[0] = SLEEP_ACK_CMD; /* go to sleep mode and acknowledge it */ + audioBuf[2] |= SLEEP_ACK_MK; cli(); i2cSlaveReceiveService(4, audioBuf); sei(); |