Go Down

Topic: please add a note to the "noInterrupts()" reference page (about Serial.print) (Read 1 time) previous topic - next topic


Please add a note to the "noInterrupts()" reference page (http://arduino.cc/en/Reference/noInterrupts) to say that if you call this function, since Serial.print depends on interrupts to send serial data to the computer, it will cause your program to freeze if you call Serial.print or Serial.println after disabling interrupts!!!

-This would have been super useful info. to me, and it would have saved me several wasted hours debugging!
See here for where I got stumped:  http://forum.arduino.cc/index.php?topic=197264.msg1455813

--adding the above comment I suggest would be very useful both here: http://arduino.cc/en/Reference/noInterrupts AND here: http://arduino.cc/en/Serial/Print
Visit my RC aircraft, electronics, & Arduino website at http://www.electricrcaircraftguy.com

Go Up