mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-22 04:54:47 +00:00
commenting out the strcpy to manually set the wifi info.
This commit is contained in:
parent
066d9d48a4
commit
3fcd4a61aa
@ -13,8 +13,8 @@ void deinitWifi()
|
|||||||
|
|
||||||
void initWifi()
|
void initWifi()
|
||||||
{
|
{
|
||||||
strcpy(radioConfig.preferences.wifi_ssid, WiFi_SSID_NAME);
|
//strcpy(radioConfig.preferences.wifi_ssid, WiFi_SSID_NAME);
|
||||||
strcpy(radioConfig.preferences.wifi_password, WiFi_SSID_PASSWORD);
|
//strcpy(radioConfig.preferences.wifi_password, WiFi_SSID_PASSWORD);
|
||||||
if (radioConfig.has_preferences) {
|
if (radioConfig.has_preferences) {
|
||||||
const char *wifiName = radioConfig.preferences.wifi_ssid;
|
const char *wifiName = radioConfig.preferences.wifi_ssid;
|
||||||
|
|
||||||
|
@ -528,7 +528,7 @@ void setBluetoothEnable(bool on)
|
|||||||
} else {
|
} else {
|
||||||
// We have to totally teardown our bluetooth objects to prevent leaks
|
// We have to totally teardown our bluetooth objects to prevent leaks
|
||||||
deinitBLE();
|
deinitBLE();
|
||||||
WiFi.mode(WIFI_MODE_NULL); // shutdown wifi
|
deinitWifi(); // shutdown wifi
|
||||||
|
|
||||||
Serial.printf("Shutdown BT: %u heap size\n", ESP.getFreeHeap());
|
Serial.printf("Shutdown BT: %u heap size\n", ESP.getFreeHeap());
|
||||||
// ESP_ERROR_CHECK( heap_trace_stop() );
|
// ESP_ERROR_CHECK( heap_trace_stop() );
|
||||||
|
Loading…
Reference in New Issue
Block a user