Commit c3fab1ac authored by Supernature2k's avatar Supernature2k

enable wifi before scanning SSID

parent ffc16de3
This diff is collapsed.
......@@ -94,7 +94,10 @@ std::string RecalboxSystem::readFile(std::string file) {
return "";
}
std::vector<std::string> RecalboxSystem::getAvailableWiFiSSID() {
std::vector<std::string> RecalboxSystem::getAvailableWiFiSSID(bool activatedWifi) {
if (!activatedWifi){
enableWifi("","");
}
std::vector<std::string> res;
std::ostringstream oss;
oss << Settings::getInstance()->getString("RecalboxSettingScript") << " " << "wifi list";
......@@ -110,7 +113,6 @@ std::vector<std::string> RecalboxSystem::getAvailableWiFiSSID() {
res.push_back(std::string(line));
}
pclose(pipe);
return res;
}
......
......@@ -24,7 +24,7 @@ public:
bool setAudioOutputDevice(std::string device);
std::vector<std::string> getAvailableWiFiSSID();
std::vector<std::string> getAvailableWiFiSSID(bool activateWifi);
std::vector<std::string> getAvailableAudioOutputDevices();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment