bigtreetech / BIGTREETECH-SKR-CR6

31 stars 17 forks source link

Solve the duplicate temperature report data problem when configured for Creality DWIN display #3

Open kevquinn opened 3 years ago

kevquinn commented 3 years ago

The DWIN touch display support is attached to the second serial port, which the version of Marlin their firmware was based on assumed would accept temperature reports. Creality "fixed" this by tweaking the SERIAL_OUT macro in serial.h to send the same text to the default serial port twice which stopped the temperature reports going to the display (which would presumably cause problems), but created the temperature reporting problem. This change undoes the SERIAL_OUT macro hacking, and instead puts a guard around the standard temperature reporting to not send to both ports if we have the serial-attached DWIN touchscreen.

kevquinn commented 3 years ago

Note - additional recent commits are not relevant upstream; I didn't expect them to be added to the merge request. Please only consider 79d600a