This commit is contained in:
@ -1,8 +1,8 @@
|
||||
#include "obsw.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
#include "OBSWConfig.h"
|
||||
#include "commonConfig.h"
|
||||
@ -39,8 +39,8 @@ int obsw::obsw() {
|
||||
#endif
|
||||
|
||||
// Init delay handling.
|
||||
if(std::filesystem::exists("$HOME/boot_delay.txt")) {
|
||||
std::ifstream ifile("$HOME/boot_delay.txt");
|
||||
if (std::filesystem::exists("$HOME/boot_delay_secs.txt")) {
|
||||
std::ifstream ifile("$HOME/boot_delay_secs.txt");
|
||||
std::string lineStr;
|
||||
unsigned int bootDelaySecs = 0;
|
||||
unsigned int line = 0;
|
||||
@ -56,6 +56,7 @@ int obsw::obsw() {
|
||||
// If the file is empty, assume default of 6 seconds
|
||||
bootDelaySecs = 6;
|
||||
}
|
||||
std::cout << "Delaying OBSW start for " << bootDelaySecs << " seconds" << std::endl;
|
||||
TaskFactory::delayTask(bootDelaySecs);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user