Browse Source

Fix Chiron TFT serial comms (#21152)

Nick 4 years ago
parent
commit
b276a7fd17
No account linked to committer's email address

+ 3
- 3
Marlin/src/lcd/extui/lib/anycubic_chiron/chiron_tft.cpp View File

292
     #if ACDEBUG(AC_SOME)
292
     #if ACDEBUG(AC_SOME)
293
       serialprintPGM(str);
293
       serialprintPGM(str);
294
     #endif
294
     #endif
295
-    while (const char c = pgm_read_byte(str++)) TFTSer.print(c);
295
+    while (const char c = pgm_read_byte(str++)) TFTSer.write(c);
296
   }
296
   }
297
 
297
 
298
   void ChironTFT::SendtoTFTLN(PGM_P str = nullptr) {
298
   void ChironTFT::SendtoTFTLN(PGM_P str = nullptr) {
305
         SERIAL_EOL();
305
         SERIAL_EOL();
306
       #endif
306
       #endif
307
     }
307
     }
308
-    TFTSer.println("");
308
+    TFTSer.println();
309
   }
309
   }
310
 
310
 
311
   bool ChironTFT::ReadTFTCommand() {
311
   bool ChironTFT::ReadTFTCommand() {
840
         // Ignore request if printing
840
         // Ignore request if printing
841
         //if (isPrinting()) break;
841
         //if (isPrinting()) break;
842
         //injectCommands_P(PSTR("M500\nM420 S1\nG1 Z10 F240\nG1 X0 Y0 F6000"));
842
         //injectCommands_P(PSTR("M500\nM420 S1\nG1 Z10 F240\nG1 X0 Y0 F6000"));
843
-        //TFTSer.println("");
843
+        //TFTSer.println();
844
       } break;
844
       } break;
845
 
845
 
846
       // A33 firmware info request seet PanelInfo()
846
       // A33 firmware info request seet PanelInfo()

+ 1
- 1
Marlin/src/sd/usb_flashdrive/lib-uhs3/UHS_host/UHS_host_INLINE.h View File

984
         //bool direction = bmReqType & 0x80; //request direction, IN or OUT
984
         //bool direction = bmReqType & 0x80; //request direction, IN or OUT
985
         uint8_t rcode = 0;
985
         uint8_t rcode = 0;
986
 
986
 
987
-        //        Serial.println("");
987
+        //Serial.println();
988
         UHS_EpInfo *pep = ctrlReqOpen(addr, Request, dataptr);
988
         UHS_EpInfo *pep = ctrlReqOpen(addr, Request, dataptr);
989
         if(!pep) {
989
         if(!pep) {
990
                 HOST_DEBUG("ctrlReq1: ERROR_NULL_EPINFO addr: %d\r\n", addr);
990
                 HOST_DEBUG("ctrlReq1: ERROR_NULL_EPINFO addr: %d\r\n", addr);

Loading…
Cancel
Save