mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 02:14:37 +00:00
is linux fixed now?
This commit is contained in:
parent
c82905bbdd
commit
9cd24a5646
@ -545,7 +545,9 @@ void setBluetoothEnable(bool on)
|
|||||||
if (firstTime) {
|
if (firstTime) {
|
||||||
firstTime = 0;
|
firstTime = 0;
|
||||||
} else {
|
} else {
|
||||||
initWifi(0);
|
#ifndef NO_ESP32
|
||||||
|
initWifi();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@ -557,7 +559,9 @@ void setBluetoothEnable(bool on)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// shutdown wifi
|
// shutdown wifi
|
||||||
|
#ifndef NO_ESP32
|
||||||
deinitWifi();
|
deinitWifi();
|
||||||
|
#endif
|
||||||
|
|
||||||
// We have to totally teardown our bluetooth objects to prevent leaks
|
// We have to totally teardown our bluetooth objects to prevent leaks
|
||||||
deinitBLE();
|
deinitBLE();
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
//#include "mesh/wifi/WebServer.h"
|
//#include "mesh/wifi/WebServer.h"
|
||||||
|
|
||||||
|
#ifndef NO_ESP32
|
||||||
|
|
||||||
#include "mesh/wifi/WiFiAPClient.h"
|
#include "mesh/wifi/WiFiAPClient.h"
|
||||||
|
|
||||||
void initWifi(bool forceSoftAP) {}
|
void initWifi(bool forceSoftAP) {}
|
||||||
@ -9,3 +12,5 @@ bool isWifiAvailable()
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user