Skip to content

Commit b23cffc

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 1af53e4 + 8ab2855 commit b23cffc

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/evse_man.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ bool EvseManager::claim(EvseClient client, int priority, EvseProperties &target)
423423
{
424424
DBUGF("Found slot");
425425
if(slot->claim(client, priority, target))
426-
{
426+
{
427427
DBUGF("Claim added/updated, waking task");
428428
_evaluateClaims = true;
429429
MicroTask.wakeTask(this);
@@ -603,7 +603,11 @@ void EvseManager::setMaxConfiguredCurrent(long amps)
603603

604604
bool EvseManager::isRapiCommandBlocked(String rapi)
605605
{
606-
return rapi.startsWith("$ST");
606+
#ifdef ENABLE_FULL_RAPI
607+
return false;
608+
#else
609+
return !rapi.startsWith("$G");
610+
#endif
607611
}
608612

609613
bool EvseManager::serializeClaims(DynamicJsonDocument &doc)

src/lcd.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void LcdTask::display(Message *msg, uint32_t flags)
7777
_tail = msg;
7878

7979
if(flags & LCD_DISPLAY_NOW) {
80-
MicroTask.wakeTask(this);
80+
displayNextMessage();
8181
}
8282
}
8383

@@ -704,7 +704,7 @@ void LcdTask::displayNameValue(int line, const char *name, const char *value)
704704

705705
void LcdTask::showText(int x, int y, const char *msg, bool clear)
706706
{
707-
DBUGF("LCD: %d %d %s", x, y, msg);
707+
DBUGF("LCD: %d %d %s, clear=%s", x, y, msg, clear ? "true" : "false");
708708
_evse->getOpenEVSE().lcdDisplayText(x, y, msg, IGNORE);
709709
if(clear)
710710
{
@@ -715,6 +715,9 @@ void LcdTask::showText(int x, int y, const char *msg, bool clear)
715715
_evse->getOpenEVSE().lcdDisplayText(i, y, " ", IGNORE);
716716
}
717717
}
718+
719+
// HACK: wait for the display to finish, fixes issues withupdating the display wile updating the firmware
720+
_evse->getSender().flush();
718721
}
719722

720723
void LcdTask::onButton(int long_press)

0 commit comments

Comments
 (0)