[tuxdroid-svn] r619 - firmware/tuxrf/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-10-16 15:33:21
|
Author: jaguarondi Date: 2007-10-16 17:32:53 +0200 (Tue, 16 Oct 2007) New Revision: 619 Modified: firmware/tuxrf/trunk/device.c Log: * Avoid a connection by changing the ID without the head pressed. Modified: firmware/tuxrf/trunk/device.c =================================================================== --- firmware/tuxrf/trunk/device.c 2007-10-16 14:57:07 UTC (rev 618) +++ firmware/tuxrf/trunk/device.c 2007-10-16 15:32:53 UTC (rev 619) @@ -91,13 +91,13 @@ { if (changeID) // Change ID request { - _delay_ms(5000); // Wait 5 sec + _delay_ms(5000); // Wait 5 sec XXX bug, _delay_ms accepts a maximum of 32 if (!(PIND & 0x40)) // Head button is pushed { eeprom_write_byte(&ee_toy_id_h, toy_id_h); // Write toy id into the eeprom eeprom_write_byte(&ee_toy_id_l, toy_id_l); - requestID = 1; // Send the new ID to the PC for confirmation } + requestID = 1; // Send the new ID to the PC for confirmation } if (requestID) // Send ID to PC |