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