Skip to content
Browse files

Startup pause before issuing config commands

  • Loading branch information...
1 parent 736bc98 commit f0d65c970a85cb949fe6109327847ad406946e5f @PaintYourDragon PaintYourDragon committed Feb 3, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 Thermal.cpp
View
9 Thermal.cpp
@@ -20,6 +20,15 @@ void Thermal::begin() {
_printer = new NewSoftSerial (_RX_Pin, _TX_Pin);
#endif
_printer->begin(19200);
+
+ // The printer can't start receiving data immediately
+ // upon power up -- needs a moment to initialize. If
+ // Arduino & printer are powered from the same supply,
+ // they're starting simultaneously. Need to pause for
+ // a moment so the printer is ready for commands.
+ // (A more robust approach might be to wait in a loop
+ // issuing status commands until valid response.)
+ delay(500);
heatTime = 120; //80 is default from page 23 of datasheet. Controls speed of printing and darkness
heatInterval = 50; //2 is default from page 23 of datasheet. Controls speed of printing and darkness

0 comments on commit f0d65c9

Please sign in to comment.
Something went wrong with that request. Please try again.