implement ScreenSaver in simulator
set ruth to stub only, because of cross compile error Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
#include "MenuOptions.h"
|
||||
#include "common/Widget.h"
|
||||
#include <cstdlib>
|
||||
#include <vector>
|
||||
|
||||
class ScreenSaver final : public Widget
|
||||
|
@@ -16,11 +16,7 @@ SplashScreen::SplashScreen(menu_options_t *options) : Widget(options->u8g2), m_o
|
||||
void SplashScreen::update(const uint64_t dt)
|
||||
{
|
||||
counter += dt;
|
||||
#ifndef ESP32
|
||||
if (counter > 3000)
|
||||
#else
|
||||
if (counter > 10)
|
||||
#endif
|
||||
if (counter >= 3000)
|
||||
{
|
||||
counter = 0;
|
||||
if (m_options && m_options->setScreen)
|
||||
|
Reference in New Issue
Block a user