Conversation
Replace u8g_Begin with u8g_UpdateDimension per comment
|
Well isn't it nice that a comment is already there to point the way…! |
|
Looks good to me. Everything still working here. |
|
We are having similar issue with SMT32.... The issue is: Marlin keeps a global uglib instance, that makes it init in the The correct fix here is:
|
|
I just send the fix I proposed to Marlin. It fixes the u8g lib issue we are having on STM32. @kgy2002 can you test if my fix work for your case too? |
|
@rhapsodyv |
|
Ok, don't worry. We can have two issues and two fixes. :-) We just need do one more check. Some Hal on marlin do some sort of hack to handle these multiple u8g init calls. They use a static local counter and only init the io when u8g lib is called more than once. I don't know if this fix will affect this. But if it affect, we need to update the marlin code too. This code was inherited by the old upscale dogm code. I will test it with this changes. And seek for another places with the same hack. |
|
Please test Marlin as it stands now, since I went ahead and implemented delayed initialization directly in this library. If it is working well, then this can be closed. |
|
Tested the current version of this library with bugfix-2.0.x pulled today. Everything works fine. |
Replace u8g_Begin with u8g_UpdateDimension per comment to prevent 2 calls to u8g_Begin:
This fixes pin 0 config when u8g_Begin is called twice.
May affect other inits but only tested this change on my board.
See Marlin Issue MarlinFirmware/Marlin#21277 and PR MarlinFirmware/Marlin#21417 for more info.