diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 1a222803..7e269ebb 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -27,7 +27,7 @@ #endif //TMC2130 -#include +#include int lcd_puts_P(const char* str) { @@ -36,11 +36,11 @@ int lcd_puts_P(const char* str) int lcd_printf_P(const char* format, ...) { - va_list args; - va_start(args, format); - int ret = vfprintf_P(lcdout, format, args); - va_end(args); - return ret; + va_list args; + va_start(args, format); + int ret = vfprintf_P(lcdout, format, args); + va_end(args); + return ret; } @@ -5400,9 +5400,15 @@ void lcd_confirm_print() } -/*static void lcd_test_menu() +#include "w25x20cl.h" + +static void lcd_test_menu() { -}*/ + W25X20CL_SPI_ENTER(); + w25x20cl_enable_wr(); + w25x20cl_chip_erase(); + w25x20cl_disable_wr(); +} static void lcd_main_menu() { @@ -5573,7 +5579,7 @@ static void lcd_main_menu() #endif MENU_ITEM(submenu, _i("Support"), lcd_support_menu);////MSG_SUPPORT c=0 r=0 -// MENU_ITEM(submenu, _i("Test"), lcd_test_menu);////MSG_SUPPORT c=0 r=0 + MENU_ITEM(submenu, _i("W25x20XL init"), lcd_test_menu);////MSG_SUPPORT c=0 r=0 END_MENU();