Skip to content

Commit b335683

Browse files
jheredianetjeremypoulter
authored andcommitted
Enable RAPI commands starting with $G, $F0 o $FB
1 parent 441ffd2 commit b335683

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/evse_man.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -603,12 +603,12 @@ void EvseManager::setMaxConfiguredCurrent(long amps)
603603

604604
bool EvseManager::isRapiCommandBlocked(String rapi)
605605
{
606-
//#ifdef ENABLE_FULL_RAPI
607-
// return false;
608-
//#else
609-
// return !rapi.startsWith("$G");
610-
//#endif
611-
return false;
606+
#ifdef ENABLE_FULL_RAPI
607+
return false;
608+
#else
609+
// For commands starting with $G, $F0 o $FB
610+
return !(rapi.startsWith("$G") || rapi.startsWith("$F0") || rapi.startsWith("$FB"));
611+
#endif
612612
}
613613

614614
bool EvseManager::serializeClaims(DynamicJsonDocument &doc)

0 commit comments

Comments
 (0)