Fixes for TFTGLCD Panel, FastIO (#19614)

This commit is contained in:
Serhiy-K
2020-10-10 13:01:46 +03:00
committed by Scott Lahteine
parent cbed6f4241
commit 72f9fdc05f
12 changed files with 112 additions and 162 deletions

View File

@ -303,7 +303,7 @@
#define LCD_STR_C STR_C
#define LCD_STR_E STR_E
#if HAS_MARLINUI_HD44780
#if EITHER(HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL)
// Custom characters defined in the first 8 characters of the LCD
#define LCD_STR_BEDTEMP "\x00" // Print only as a char. This will have 'unexpected' results when used in a string!

View File

@ -71,7 +71,7 @@ public:
inline void restore() { ref_ = val_; }
};
#define REMEMBER(N,X,V...) restorer<typeof(X)> restorer_##N(X, ##V)
#define REMEMBER(N,X,V...) restorer<__typeof__(X)> restorer_##N(X, ##V)
#define RESTORE(N) restorer_##N.restore()
// Converts from an uint8_t in the range of 0-255 to an uint8_t