bugfix for autonomous handling
This commit is contained in:
parent
69f34acbd2
commit
5d721706f3
@ -41,7 +41,7 @@ static constexpr uint32_t SA_DEPL_WAIT_TIME_SECS = 45 * 60;
|
||||
// HW constraints (current limit) mean that the GPIO channels need to be switched on in alternation
|
||||
static constexpr uint32_t SA_DEPL_CHANNEL_ALTERNATION_INTERVAL_SECS = 5;
|
||||
// Maximum allowed burn time allowed by the software.
|
||||
static constexpr uint32_t SA_DEPL_MAX_BURN_TIME = 120;
|
||||
static constexpr uint32_t SA_DEPL_MAX_BURN_TIME = 180;
|
||||
|
||||
} // namespace config
|
||||
|
||||
|
@ -89,7 +89,6 @@ bool SolarArrayDeploymentHandler::autonomousDeplForFile(const char* filename, bo
|
||||
bool stateSwitch = false;
|
||||
uint32_t secsSinceBoot = 0;
|
||||
while (std::getline(file, line)) {
|
||||
if (lineNum == 0) {
|
||||
std::istringstream iss(line);
|
||||
if (lineNum == 0) {
|
||||
iss >> word;
|
||||
@ -140,7 +139,6 @@ bool SolarArrayDeploymentHandler::autonomousDeplForFile(const char* filename, bo
|
||||
switchCheck(AutonomousDeplState::DONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
lineNum++;
|
||||
}
|
||||
bool updateUptime = false;
|
||||
|
Loading…
Reference in New Issue
Block a user