From 343266f1cd3eca5f21b9b5e0b0e931701a549ee0 Mon Sep 17 00:00:00 2001 From: eshanized Date: Thu, 2 Jan 2025 07:32:00 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20more=20deatiled=20docume?= =?UTF-8?q?ntation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qt/snigdhaosblackbox.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qt/snigdhaosblackbox.cpp b/qt/snigdhaosblackbox.cpp index 3035ac6..baaf28f 100644 --- a/qt/snigdhaosblackbox.cpp +++ b/qt/snigdhaosblackbox.cpp @@ -407,13 +407,18 @@ void SnigdhaOSBlackbox::updateState(State state) { void SnigdhaOSBlackbox::updateState(QString state) { + // Check if the state is "POST_UPDATE". if (state == "POST_UPDATE"){ + // If the state is "POST_UPDATE", transition to the SELECT state. updateState(State::SELECT); } + // Check if the state is "UPDATE_RETRY". else if (state == "UPDATE_RETRY") { + // If the state is "UPDATE_RETRY", transition to the UPDATE_RETRY state. updateState(State::UPDATE_RETRY); } else { + // For any other state, default to the WELCOME state. updateState(State::WELCOME); } }