mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-27 00:05:06 +02:00
1.0.5 compilation fixes (#782)
* Fix compilations error due to new enum in esp32 core release 1.0.5 * Update Grbl.h Co-authored-by: Luc <luc.@tech-hunters.com>
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
// Grbl versioning system
|
||||
const char* const GRBL_VERSION = "1.3a";
|
||||
const char* const GRBL_VERSION_BUILD = "20210218";
|
||||
const char* const GRBL_VERSION_BUILD = "20210226";
|
||||
|
||||
//#include <sdkconfig.h>
|
||||
#include <Arduino.h>
|
||||
|
@@ -466,7 +466,7 @@ namespace WebUI {
|
||||
webPrintln("Signal: ", String(wifi_config.getSignal(WiFi.RSSI())) + "%");
|
||||
|
||||
uint8_t PhyMode;
|
||||
esp_wifi_get_protocol(ESP_IF_WIFI_STA, &PhyMode);
|
||||
esp_wifi_get_protocol(WIFI_IF_STA, &PhyMode);
|
||||
const char* modeName;
|
||||
switch (PhyMode) {
|
||||
case WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N:
|
||||
@@ -501,7 +501,7 @@ namespace WebUI {
|
||||
print_mac("AP", WiFi.softAPmacAddress());
|
||||
|
||||
wifi_config_t conf;
|
||||
esp_wifi_get_config(ESP_IF_WIFI_AP, &conf);
|
||||
esp_wifi_get_config(WIFI_IF_AP, &conf);
|
||||
webPrintln("SSID: ", (const char*)conf.ap.ssid);
|
||||
webPrintln("Visible: ", (conf.ap.ssid_hidden == 0) ? "Yes" : "No");
|
||||
|
||||
|
@@ -71,7 +71,7 @@ namespace WebUI {
|
||||
}
|
||||
result += "Mode=AP:SSDI=";
|
||||
wifi_config_t conf;
|
||||
esp_wifi_get_config(ESP_IF_WIFI_AP, &conf);
|
||||
esp_wifi_get_config(WIFI_IF_AP, &conf);
|
||||
result += (const char*)conf.ap.ssid;
|
||||
result += ":IP=";
|
||||
result += WiFi.softAPIP().toString();
|
||||
|
Reference in New Issue
Block a user