Skip to content

Commit

Permalink
Anycubic Vyper show message on main
Browse files Browse the repository at this point in the history
The main page have a text field of 30 character
not used for anything.
Use it to display the printer message.
  • Loading branch information
ngraziano committed Jun 10, 2024
1 parent e7a0d05 commit 8969f23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Marlin/src/lcd/extui/anycubic_vyper/dgus_tft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,11 @@ namespace Anycubic {
static grid_count_t probe_cnt = 0;
#endif

// Visible in main page
char str_buf[30];
strlcpy_P(str_buf, msg, sizeof(str_buf));
sendTxtToTFT(str_buf, TXT_MAIN_MESSAGE);

// The only way to get printer status is to parse messages
// Use the state to minimise the work we do here.
switch (printer_state) {
Expand Down

0 comments on commit 8969f23

Please sign in to comment.