mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
daeeece63a
commit
8860bcf007
2 changed files with 6 additions and 6 deletions
|
@ -21,11 +21,11 @@ volatile CAN_Configuration can_config = {
|
||||||
.shunt = CAN_NATIVE // (OPTIONAL) Which CAN is your shunt connected to?
|
.shunt = CAN_NATIVE // (OPTIONAL) Which CAN is your shunt connected to?
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string ssid = WIFI_SSID; // Set in USER_SECRETS.h
|
std::string ssid = WIFI_SSID; // Set in USER_SECRETS.h
|
||||||
std::string password = WIFI_PASSWORD; // Set in USER_SECRETS.h
|
std::string password = WIFI_PASSWORD; // Set in USER_SECRETS.h
|
||||||
const char* ssidAP = "Battery Emulator"; // Maximum of 63 characters, also used for device name on web interface
|
const char* ssidAP = "Battery Emulator"; // Maximum of 63 characters, also used for device name on web interface
|
||||||
const char* passwordAP = AP_PASSWORD; // Set in USER_SECRETS.h
|
const char* passwordAP = AP_PASSWORD; // Set in USER_SECRETS.h
|
||||||
const uint8_t wifi_channel = 0; // Set to 0 for automatic channel selection
|
const uint8_t wifi_channel = 0; // Set to 0 for automatic channel selection
|
||||||
const char* hostname = "battery-emulator"; // Hostname for the device, needs to be enabled in USER_SETTINGS.h
|
const char* hostname = "battery-emulator"; // Hostname for the device, needs to be enabled in USER_SETTINGS.h
|
||||||
|
|
||||||
#ifdef WEBSERVER
|
#ifdef WEBSERVER
|
||||||
|
|
|
@ -186,7 +186,7 @@ void init_mDNS() {
|
||||||
// e.g batteryemulator8C.local where the mac address is 08:F9:E0:D1:06:8C
|
// e.g batteryemulator8C.local where the mac address is 08:F9:E0:D1:06:8C
|
||||||
String mac = WiFi.macAddress();
|
String mac = WiFi.macAddress();
|
||||||
String mdnsHost = "batteryemulator" + mac.substring(mac.length() - 2);
|
String mdnsHost = "batteryemulator" + mac.substring(mac.length() - 2);
|
||||||
#ifdef HOSTNAME // If HOSTNAME is defined, use the same hostname from USER_SETTINGS.h also for mDNS
|
#ifdef HOSTNAME // If HOSTNAME is defined, use the same hostname from USER_SETTINGS.h also for mDNS
|
||||||
mdnsHost = hostname;
|
mdnsHost = hostname;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue