[tuxdroid-svn] r756 - firmware/tuxcore/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-12-06 17:06:30
|
Author: jaguarondi Date: 2007-12-06 18:06:24 +0100 (Thu, 06 Dec 2007) New Revision: 756 Modified: firmware/tuxcore/trunk/ir.c Log: * Disabling the greeting function completely now has the led fading effects seems to trigger it. Modified: firmware/tuxcore/trunk/ir.c =================================================================== --- firmware/tuxcore/trunk/ir.c 2007-12-06 15:58:49 UTC (rev 755) +++ firmware/tuxcore/trunk/ir.c 2007-12-06 17:06:24 UTC (rev 756) @@ -145,25 +145,25 @@ irStatus &= ~IRSTATUS_RECEIVING; irPulses = SILENCE_PULSES; /* If in end mode, reset timer to wait for silence before receiving next data */ /* XXX IR command and address need to be sent to the computer */ - if ((irReceivedCode & 0x07C0) == 0x0100) /* Tux detected */ + /*if ((irReceivedCode & 0x07C0) == 0x0100) [> Tux detected <]*/ + /*{*/ + /*if (last_tux_seen != (uint8_t) irReceivedCode)*/ + /*cond_flags.tux_recog = 0xF0;*/ + /*last_tux_seen = irReceivedCode;*/ + /*}*/ + /*else if ((irReceivedCode & 0x07C0) == 0x0200) [> The other tux replied <]*/ + /*{*/ + /*if (last_tux_seen != (uint8_t) irReceivedCode)*/ + /*cond_flags.tux_recog = 0xE0; [> greeting detected <]*/ + /*last_tux_seen = irReceivedCode;*/ + /*}*/ + /*else if ((irReceivedCode & 0x07C0) == 0x0300) [> The other tux replied <]*/ + /*{*/ + /*if (cond_flags.tux_recog == 0xF1)*/ + /*cond_flags.tux_recog = 0xD0; [> reply to a greeting detected <]*/ + /*}*/ + /*else*/ { - if (last_tux_seen != (uint8_t) irReceivedCode) - cond_flags.tux_recog = 0xF0; - last_tux_seen = irReceivedCode; - } - else if ((irReceivedCode & 0x07C0) == 0x0200) /* The other tux replied */ - { - if (last_tux_seen != (uint8_t) irReceivedCode) - cond_flags.tux_recog = 0xE0; /* greeting detected */ - last_tux_seen = irReceivedCode; - } - else if ((irReceivedCode & 0x07C0) == 0x0300) /* The other tux replied */ - { - if (cond_flags.tux_recog == 0xF1) - cond_flags.tux_recog = 0xD0; /* reply to a greeting detected */ - } - else - { /* Update global status */ gStatus.ir = ((uint8_t)irReceivedCode & 0x3F); /* Check if the code comes from our remote control. */ |