-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi Roel
Just a thought, how about seperating out flashPin to FlashPinOn and flashPinOff and then call flashPin() here:
Line 328 in 3eb512e
| packetCounter++; |
if (validPacket)
{
flashPinOn()
packetCounter++;
getMetafromRaw((char *) buf);
parseRawData((char *) buf);
flashPinOff()
}
I havent had the time to time that code, but if it really doesn't take long enough to see the flash, then you could of course just toggle the LED for each packet:
void flashPinToggle()
{
digitalWrite(FLASH_PIN, !digitalRead(FLASH_PIN));
}
That code can be optimised massivley if needed, but at the cost of compatibility.
Just a thought :)
Cheers
Kev
Metadata
Metadata
Assignees
Labels
No labels