Spacing, defined(), #include tweaks
This commit is contained in:
@ -170,7 +170,7 @@ class UncachedScreen {
|
||||
template<uint8_t DL_SLOT,uint32_t DL_SIZE = 0>
|
||||
class CachedScreen {
|
||||
protected:
|
||||
static bool storeBackground(){
|
||||
static bool storeBackground() {
|
||||
DLCache dlcache(DL_SLOT);
|
||||
if (!dlcache.store(DL_SIZE)) {
|
||||
SERIAL_ECHO_START();
|
||||
@ -180,7 +180,7 @@ class CachedScreen {
|
||||
return true;
|
||||
}
|
||||
|
||||
static void repaintBackground(){
|
||||
static void repaintBackground() {
|
||||
using namespace FTDI;
|
||||
DLCache dlcache(DL_SLOT);
|
||||
CLCD::CommandFifo cmd;
|
||||
@ -192,7 +192,7 @@ class CachedScreen {
|
||||
}
|
||||
|
||||
public:
|
||||
static void onRefresh(){
|
||||
static void onRefresh() {
|
||||
using namespace FTDI;
|
||||
DLCache dlcache(DL_SLOT);
|
||||
CLCD::CommandFifo cmd;
|
||||
@ -201,7 +201,8 @@ class CachedScreen {
|
||||
|
||||
if (dlcache.has_data()) {
|
||||
dlcache.append();
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
current_screen.onRedraw(BACKGROUND);
|
||||
dlcache.store(DL_SIZE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user