makerbase-mks / Mks-Robin-Nano-Marlin2.0-Firmware

The firmware of Mks Robin Nano, based on Marlin-2.0.x, adding the color GUI.
GNU General Public License v3.0
262 stars 285 forks source link

Black screen after auto leveling #267

Open seba1213 opened 3 years ago

seba1213 commented 3 years ago

I merged config files from old version (maybe one year before) witch curent version. ven i select an option auto leveling on screen after leveling screen become black, only reboot help. I use an inductive proximity sensor, attaching my configs. Configuration_adv.h.txt Configuration.h.txt

siwanamu commented 3 years ago

It's a firmware bug??? In case of FIX_MOUNTED_PROBE, a black screen seems to have occurred.

This is a temporary workaround.

draw_level_settings.cpp

  1. Line 65 : Modify

    if ENABLED(BLTOUCH)

    --> #if ENABLED(BLTOUCH) || ENABLED(FIX_MOUNTED_PROBE)

  2. Line 90 : Modify

    if ENABLED(BLTOUCH)

    --> #if ENABLED(BLTOUCH) || ENABLED(FIX_MOUNTED_PROBE)

draw_ui.cpp

  1. Line 904 : Modify

    if ENABLED(BLTOUCH)

    --> #if ENABLED(BLTOUCH) || ENABLED(FIX_MOUNTED_PROBE)

  2. Line 1001 : Modify

    if ENABLED(BLTOUCH)

    --> #if ENABLED(BLTOUCH) || ENABLED(FIX_MOUNTED_PROBE)

printer_operation.cpp

  1. Line 163

    ifdef BLTOUCH

    --> #ifdef BLTOUCH || FIX_MOUNTED_PROBE

seba1213 commented 3 years ago

It didn't help, after leveling it still ends up with a black screen. On the older version, everything worked without problems. When building, I noticed one minus: Marlin\src\lcd\extui\lib\mks_ui\printer_operation.cpp:163:22: warning: extra tokens at end of #ifdef directive

ifdef BLTOUCH || FIX_MOUNTED_PROBE

siwanamu commented 3 years ago

It didn't help, after leveling it still ends up with a black screen. On the older version, everything worked without problems. When building, I noticed one minus: Marlin\src\lcd\extui\lib\mks_ui\printer_operation.cpp:163:22: warning: extra tokens at end of #ifdef directive #ifdef BLTOUCH || FIX_MOUNTED_PROBE

ifdef BLTOUCH || FIX_MOUNTED_PROBE

-->

ifdef BLTOUCH

bltouch_do_init(false); lv_draw_bltouch_settings();

endif

ifdef FIX_MOUNTED_PROBE

bltouch_do_init(false); lv_draw_bltouch_settings();

endif

Bkara1981 commented 1 year ago

Same thing happened and even there is power on 3dtouch, mainboard etc, display is blank, no beep sound, not turning on and it does not update firmware from sd card...