dev20110607 injects spurious data

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
User avatar
Hamburger
Posts: 2557
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

dev20110607 injects spurious data

Post by Hamburger »

Hi,
while porting some code changes from v1.7 to dev20110607 I ran across a change which in my case is causing desaster.
Old code v1.7 works:

Code: Select all

      serialize8('A');
      Serial.write(s,point);

but new code in dev version

Code: Select all

      serialize8('A');
      UartSendData(); // Serial.write(s,point);

does inject spurious characters into the serial input chain on the arduino! In my case the serial loop did receive 'C' and 'D' characters. On an unmodified dev version this would request the flying multiwii@arduino to write to eeprom or to calibrate acc sensor. Both not desired to happen randomly (and most notably not when in armed flight mode).

Easy fix: revert to old code. Probably somewhat slower but dead reliable.
Hamburger

Post Reply