ESP32: убрать временный автозапуск homeserver
This commit is contained in:
parent
017d568aea
commit
29dddeff4f
@ -363,9 +363,6 @@ static String gRegisterConfirmBalanceLine;
|
||||
static String gRegisterConfirmPdaLine;
|
||||
static String gRegisterConfirmHomeserverLine;
|
||||
static bool gRegisterConfirmCanSubmit = false;
|
||||
static bool gAutoHomeserverDebugPending = true;
|
||||
static bool gAutoHomeserverDebugRunning = false;
|
||||
static bool gAutoHomeserverDebugDone = false;
|
||||
static String gRegisterResultMessage;
|
||||
static String gRegisterResultDetails;
|
||||
static bool gRegisterResultSuccess = false;
|
||||
@ -631,7 +628,6 @@ static bool awaitTransactionConfirmation(const String &signatureB58, String &mes
|
||||
static bool registerHomeserverOnSolana(String &messageOut);
|
||||
static void executeRegisterAccountFlow(const char *triggerSource, bool showResultScreen);
|
||||
static bool updateHomeserverSessionOnSolana(bool requireExisting, String &messageOut);
|
||||
static void maybeAutoRunHomeserverAddDebug();
|
||||
static void loadRegisterDiagDetailsFromPrefs();
|
||||
static void saveRegisterDiagDetailsToPrefs(const String &details);
|
||||
static void clearRegisterDiagDetailsFromPrefs();
|
||||
@ -1496,7 +1492,6 @@ static void markAccountStateDirty() {
|
||||
gRegisterResultMessage = "";
|
||||
gRegisterResultDetails = "";
|
||||
gRegisterResultSuccess = false;
|
||||
gAutoHomeserverDebugPending = true;
|
||||
clearShineSessionState(true);
|
||||
gShineStatusLine = "SHiNE: account not configured";
|
||||
}
|
||||
@ -3433,34 +3428,6 @@ static bool updateHomeserverSessionOnSolana(bool requireExisting, String &messag
|
||||
return true;
|
||||
}
|
||||
|
||||
static void maybeAutoRunHomeserverAddDebug() {
|
||||
if (!gAutoHomeserverDebugPending || gAutoHomeserverDebugRunning || gAutoHomeserverDebugDone) {
|
||||
return;
|
||||
}
|
||||
if (WiFi.status() != WL_CONNECTED) {
|
||||
return;
|
||||
}
|
||||
if (!gSecretConfigured || !gHomeserverPdaCanAdd || !gShowHomeserverPdaActionButton) {
|
||||
return;
|
||||
}
|
||||
|
||||
gAutoHomeserverDebugPending = false;
|
||||
gAutoHomeserverDebugRunning = true;
|
||||
gAutoHomeserverDebugDone = true;
|
||||
gRegisterTriggerSource = "auto-boot-homeserver-add";
|
||||
|
||||
Serial.println("AUTO_HOMESERVER_ADD_BEGIN");
|
||||
String updateMessage;
|
||||
bool ok = updateHomeserverSessionOnSolana(false, updateMessage);
|
||||
if (ok) {
|
||||
Serial.println("AUTO_HOMESERVER_ADD_OK");
|
||||
} else {
|
||||
Serial.print("AUTO_HOMESERVER_ADD_FAIL: ");
|
||||
Serial.println(updateMessage);
|
||||
}
|
||||
gAutoHomeserverDebugRunning = false;
|
||||
}
|
||||
|
||||
static bool parseShineUserPdaBytes(const std::vector<uint8_t> &bytes, ShinePdaUserState &outState, String &errorOut) {
|
||||
outState = ShinePdaUserState{};
|
||||
errorOut = "";
|
||||
@ -7203,7 +7170,6 @@ void loop() {
|
||||
}
|
||||
manageWifiReconnect();
|
||||
manageAccountPdaRefresh();
|
||||
maybeAutoRunHomeserverAddDebug();
|
||||
manageShineConnection();
|
||||
|
||||
if (gBalanceAutoRefreshPending && gSecretConfigured && WiFi.status() == WL_CONNECTED) {
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
client.version=1.2.250
|
||||
server.version=1.2.235
|
||||
client.version=1.2.251
|
||||
server.version=1.2.236
|
||||
|
||||
Loading…
Reference in New Issue
Block a user