Spacing, defined(), #include tweaks

This commit is contained in:
Scott Lahteine
2019-08-29 17:06:18 -05:00
parent 7ebfae27e3
commit d25231aea8
9 changed files with 27 additions and 22 deletions

View File

@ -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);
}