-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Marlin ADVANCED_OK + static ADVANCED_OK support #2824
Conversation
Here a small tweak for the notification list (Gui.c) It checks if the truncate indicator "…" is actually needed, it's not needed if:
Let me show what it does by giving some examples. "Date:2023-09-18 18:21:34A" (The complete notification message just fits into the available space) "Date:2023-09-18 18:21:34AB" (The complete notification message doesn't fit) The 2 changed lines have comments.
|
I noticed that you made the whole DMA_CIRCULAR_BUFFER volatile, but I believe that it's only required for the members that are actually changed in the ISR, so wIndex only.
|
yes, volatile could be applied only to wIndex. I would provide this change in the PR related to #2835. |
shouldn't it be:
? EDIT: forget it Ok, minor improvement added |
…playing a truncated message
THANKS! I know it's a minor thing, but my standard startup messages (date and time, ip address, ETA etc) have this issue, so it annoyed me a bit. |
@digant73 Perhaps it's the Marlin bug you mentioned? UPDATE: When going from the current master to #2824, then I always need to use "reset.txt" to get things going. UPDATE 2: It might be wise to add some keywords to the language now file for future use. |
strange. Try to disable ADVANCED_OK in Marlin and verify if the issue is still present EDIT: bug fixed |
Confirmed, fixed, if not connected then M105 keep coming, well done! Let me check if my ESP3D issue (early ESP3D message stops the connection) is fixed now too |
IMPROVEMENTS:
Added
advanced_ok
setting onconfig.ini
file to allowMarlin ADVANCED_OK
andstatic (TFT based) ADVANCED_OK
support: Based on original code shared by @rondlh on [FR] ADVANCED_OK support, base code implemented already #2819. Code reviewed, fixed and improvedIf enabled:
the available G-code TX slots indication provided by the mainboard to schedule the transmission
of multiple G-codes, if any, for a maximum of the given indication.
support the transmission of G-codes according to the configured
tx_slots
setting.If disabled, the TFT will provide the standard transmission logic based on one G-code per time.
Added
tx_slots
setting onconfig.ini
file: Maximum number of G-code TX slots used by the TFT for the communication with the printer used when static ADVANCED_OK is appliedAdded
Monitoring
menu: Available inNotification
menu (pressing onInfo
button) only ifDEBUG_MONITORING
option is enabled inConfiguration.h
. It allows to monitor/show resources usage (e.g. buffered gcodes, pending gcodes, available TX slots etc...) useful for troubleshooting (see attached pictures)Minor code optimization on
os_timer.c
: As reported in FR [BUG] Buggy time handling code (doesn't consider timer rollover) #2832, useless invokation of updatePrintTime() function was performed while it could be limited just to 1 per second (as needed during a printing)Minor improvement in
_GUI_DispLenString()
function (GUI
API) when displaying a truncated messageMinor code cleanup/optimization
NOTES:
advanced_ok
to 0 (disabled)Feature
menutx_slots
set to 2 (no frequent idle state on mainboard's RX bufferBUGFIXES:
Connection
menu to properly connect the TFT to mainboard). The TFT sent aM114 E
gcode for which mainboard didn't provide any reply. Bug is more on mainboard than on TFT but it is fixed on TFT side simply delaying the transmission of M114 E after the TFT properly connected to mainboardresolves #2819
resolves #2806 (zombie)
resolves #2810 (zombie)
resolves #2816 (zombie)
PR STATE: Ready for merge