Fixed blink (debugging via keyboard)

This commit is contained in:
CommanderRedYT
2022-05-15 23:12:12 +02:00
parent a58a8d1344
commit 4b8848d464

View File

@ -18,6 +18,7 @@
#include "globals.h"
#include "utils.h"
#include "bobbybuttons.h"
#include "bobbyquickactions.h"
namespace {
constexpr const char * const TAG = "DEBUG";
@ -159,16 +160,14 @@ void handleNormalChar(char c)
case 'Z':
if (espgui::currentDisplay)
{
espgui::currentDisplay->buttonPressed(espgui::Button(BobbyButton::Left2));
espgui::currentDisplay->buttonReleased(espgui::Button(BobbyButton::Left2));
quickactions::blink_left();
}
break;
case 'u':
case 'U':
if (espgui::currentDisplay)
{
espgui::currentDisplay->buttonPressed(espgui::Button(BobbyButton::Right2));
espgui::currentDisplay->buttonReleased(espgui::Button(BobbyButton::Right2));
quickactions::blink_right();
}
break;
}