probonopd / WirelessPrinting

Print wirelessly from Cura, PrusaSlicer or Slic3r to your 3D printer connected to an ESP8266 or ESP32 module
352 stars 65 forks source link

Uniformed configuration items #100

Closed GMagician closed 5 years ago

GMagician commented 5 years ago

Moved M115 retries with other configurable items and expanded to max 255

GMagician commented 5 years ago

@chepo92 don't know if retry for M115 intention was to be configurable. If so I think it's better to move it with other items...otherwise kill this

probonopd commented 5 years ago

Couldn't we cycle through all baudrates until one is found that works? So, "unlimited repeats"

GMagician commented 5 years ago

In my opinion one try for baud is more than enough. Prepending \xFF to M115 should flush and resync receiving buffer but I think we are facing here "some other communication" filled up receiver buffer and out /r/n confirm a "never sent" message. One solution may be: send \xff\r\n to purge corrupted received frame wait 0.1s and then clean our receiver buffer and send M115 and repeat this for each baud....