Bisherige Änderung:
Code:
#ifdef HOTT
unsigned long hott_time = 0;
#endif
Code:
void loop()
{
uint8_t c;
#ifdef HOTT
if (millis() >= hott_time)
{
requestData();
}
#else
if (uart_get_char(c))
{
encodeTargetData(c);
}
#endif
Code:
if (millis() > time + 14){
time = millis();
trackerPosition.heading = getHeading();
gotNewHeading = true;
#ifdef DEBUG
char s[10];
uart_puts(itoa(trackerPosition.heading/10,s,10));uart_puts("\n");
#endif