Browse Source

Fix Chiron TFT serial comms (#21152)

Nick 3 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,7 +292,7 @@ namespace Anycubic {
292 292
     #if ACDEBUG(AC_SOME)
293 293
       serialprintPGM(str);
294 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 298
   void ChironTFT::SendtoTFTLN(PGM_P str = nullptr) {
@@ -305,7 +305,7 @@ namespace Anycubic {
305 305
         SERIAL_EOL();
306 306
       #endif
307 307
     }
308
-    TFTSer.println("");
308
+    TFTSer.println();
309 309
   }
310 310
 
311 311
   bool ChironTFT::ReadTFTCommand() {
@@ -840,7 +840,7 @@ namespace Anycubic {
840 840
         // Ignore request if printing
841 841
         //if (isPrinting()) break;
842 842
         //injectCommands_P(PSTR("M500\nM420 S1\nG1 Z10 F240\nG1 X0 Y0 F6000"));
843
-        //TFTSer.println("");
843
+        //TFTSer.println();
844 844
       } break;
845 845
 
846 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,7 +984,7 @@ uint8_t UHS_USB_HOST_BASE::ctrlReq(uint8_t addr, uint64_t Request, uint16_t nbyt
984 984
         //bool direction = bmReqType & 0x80; //request direction, IN or OUT
985 985
         uint8_t rcode = 0;
986 986
 
987
-        //        Serial.println("");
987
+        //Serial.println();
988 988
         UHS_EpInfo *pep = ctrlReqOpen(addr, Request, dataptr);
989 989
         if(!pep) {
990 990
                 HOST_DEBUG("ctrlReq1: ERROR_NULL_EPINFO addr: %d\r\n", addr);

Loading…
Cancel
Save