Reformatovani textu po zasahu VSC :-(
This commit is contained in:
parent
81ceb9aca9
commit
dc8aa8890d
@ -117,9 +117,9 @@ static int configBase; // musi byt trvale ulozene, aby fungovaly metody pro zisk
|
|||||||
|
|
||||||
static std::unique_ptr<DNSServer> dnsServer;
|
static std::unique_ptr<DNSServer> dnsServer;
|
||||||
#if defined(ESP8266)
|
#if defined(ESP8266)
|
||||||
static std::unique_ptr<ESP8266WebServer> server;
|
static std::unique_ptr<ESP8266WebServer> server;
|
||||||
#else
|
#else
|
||||||
static std::unique_ptr<WebServer> server;
|
static std::unique_ptr<WebServer> server;
|
||||||
#endif
|
#endif
|
||||||
static std::unique_ptr<Ticker> rsttick;
|
static std::unique_ptr<Ticker> rsttick;
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ IPAddress getOurIP(void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ipa = IPAddress(0,0,0,0); // nelze urcit ip adresu (bud je AP + STA aktivni, nebo je vypnute WiFi)
|
ipa = IPAddress(0, 0, 0, 0); // nelze urcit ip adresu (bud je AP + STA aktivni, nebo je vypnute WiFi)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return ipa;
|
return ipa;
|
||||||
@ -161,7 +161,7 @@ uint32_t getEEPROMuint32(unsigned int start)
|
|||||||
{
|
{
|
||||||
uint32_t result = 0;
|
uint32_t result = 0;
|
||||||
|
|
||||||
for (uint32_t i=0; i<4; ++i)
|
for (uint32_t i = 0; i < 4; ++i)
|
||||||
{
|
{
|
||||||
result <<= 8;
|
result <<= 8;
|
||||||
result += EEPROM.read(start);
|
result += EEPROM.read(start);
|
||||||
@ -173,7 +173,7 @@ uint32_t getEEPROMuint32(unsigned int start)
|
|||||||
void setEEPROMuint32(unsigned int start, uint32_t val)
|
void setEEPROMuint32(unsigned int start, uint32_t val)
|
||||||
{
|
{
|
||||||
|
|
||||||
for (unsigned int i=0; i<4; ++i)
|
for (unsigned int i = 0; i < 4; ++i)
|
||||||
{
|
{
|
||||||
EEPROM.write(start + 3 - i, (uint8_t)val);
|
EEPROM.write(start + 3 - i, (uint8_t)val);
|
||||||
val >>= 8;
|
val >>= 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user