MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.28k stars 19.24k forks source link

[BUG][Ender 3 v2][dwin] MYSERIAL1' was not declared in this scope #20761

Closed CRCinAU closed 3 years ago

CRCinAU commented 3 years ago

This seems to be introduced since yesterday, but I haven't found a commit yet that has broken this in bugfix-2.0.x

Possible its a Configuration update that's broken it. I note that the Configurations repo had a push ~14 hours ago - but as its a force / smooshed commit, there's no history to compare.

Configs: https://github.com/MarlinFirmware/Configurations/tree/bugfix-2.0.x/config/examples/Creality/Ender-3%20V2

Marlin/src/lcd/dwin/dwin_lcd.cpp: In function 'void DWIN_Send(size_t&)':
Marlin/src/lcd/dwin/dwin_lcd.cpp:85:20: error: 'MYSERIAL1' was not declared in this scope
   LOOP_L_N(n, i) { MYSERIAL1.write(DWIN_SendBuf[n]); delayMicroseconds(1); }
                    ^~~~~~~~~
Marlin/src/lcd/dwin/dwin_lcd.cpp:85:20: note: suggested alternative: 'MYSERIAL0'
   LOOP_L_N(n, i) { MYSERIAL1.write(DWIN_SendBuf[n]); delayMicroseconds(1); }
                    ^~~~~~~~~
                    MYSERIAL0
Marlin/src/lcd/dwin/dwin_lcd.cpp:86:20: error: 'MYSERIAL1' was not declared in this scope
   LOOP_L_N(n, 4) { MYSERIAL1.write(DWIN_BufTail[n]); delayMicroseconds(1); }
                    ^~~~~~~~~
Marlin/src/lcd/dwin/dwin_lcd.cpp:86:20: note: suggested alternative: 'MYSERIAL0'
   LOOP_L_N(n, 4) { MYSERIAL1.write(DWIN_BufTail[n]); delayMicroseconds(1); }
                    ^~~~~~~~~
                    MYSERIAL0
Marlin/src/lcd/dwin/dwin_lcd.cpp: In function 'bool DWIN_Handshake()':
Marlin/src/lcd/dwin/dwin_lcd.cpp:97:10: error: 'MYSERIAL1' was not declared in this scope
   while (MYSERIAL1.available() > 0 && recnum < (signed)sizeof(databuf)) {
          ^~~~~~~~~
Marlin/src/lcd/dwin/dwin_lcd.cpp:97:10: note: suggested alternative: 'MYSERIAL0'
   while (MYSERIAL1.available() > 0 && recnum < (signed)sizeof(databuf)) {
          ^~~~~~~~~
          MYSERIAL0
*** [.pio/build/STM32F103RET6_creality/src/src/lcd/dwin/dwin_lcd.cpp.o] Error 1
thinkyhead commented 3 years ago

This will be solved when #20738 is merged.

CRCinAU commented 3 years ago

Can confirm - is working ok now.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.