Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Fix welcome
Browse files Browse the repository at this point in the history
  • Loading branch information
natesdev committed May 12, 2024
1 parent ec86b78 commit e798147
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shelly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,13 @@ int getWelcome()
string configFile = configDir + "welcome";

createConfigDir();
ifstream configFileStream(configFile);
if (configFileStream.is_open())
{
getline(configFileStream, welcome);
configFileStream.close();
return 0;
}

return 1;
}
Expand Down

0 comments on commit e798147

Please sign in to comment.