chip_info
This commit is contained in:
@@ -547,7 +547,8 @@ void Config::bootInfo() {
|
|||||||
BOOTLOG("************************************************");
|
BOOTLOG("************************************************");
|
||||||
BOOTLOG("arduino:\t%d", ARDUINO);
|
BOOTLOG("arduino:\t%d", ARDUINO);
|
||||||
BOOTLOG("compiler:\t%s", __VERSION__);
|
BOOTLOG("compiler:\t%s", __VERSION__);
|
||||||
BOOTLOG("esp:\t\t%d.%d.%d", ESP_ARDUINO_VERSION_MAJOR, ESP_ARDUINO_VERSION_MINOR, ESP_ARDUINO_VERSION_PATCH);
|
BOOTLOG("esp32core:\t%d.%d.%d", ESP_ARDUINO_VERSION_MAJOR, ESP_ARDUINO_VERSION_MINOR, ESP_ARDUINO_VERSION_PATCH);
|
||||||
|
BOOTLOG("esp chip:\tmodel: %s | rev: %d | cores: %d | psram: %d", ESP.getChipModel(), ESP.getChipRevision(), ESP.getChipCores(), ESP.getPsramSize());
|
||||||
BOOTLOG("display:\t%d", DSP_MODEL);
|
BOOTLOG("display:\t%d", DSP_MODEL);
|
||||||
if(VS1053_CS==255) {
|
if(VS1053_CS==255) {
|
||||||
BOOTLOG("audio:\t\t%s (%d, %d, %d)", "I2S", I2S_DOUT, I2S_BCLK, I2S_LRC);
|
BOOTLOG("audio:\t\t%s (%d, %d, %d)", "I2S", I2S_DOUT, I2S_BCLK, I2S_LRC);
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ void Network::begin() {
|
|||||||
}
|
}
|
||||||
if (WiFi.status() != WL_CONNECTED && ls == startedls) {
|
if (WiFi.status() != WL_CONNECTED && ls == startedls) {
|
||||||
raiseSoftAP();
|
raiseSoftAP();
|
||||||
|
Serial.println("##[BOOT]#\tdone");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (WiFi.status() == WL_CONNECTED) {
|
if (WiFi.status() == WL_CONNECTED) {
|
||||||
@@ -130,7 +131,12 @@ void rebootTime() {
|
|||||||
void Network::raiseSoftAP() {
|
void Network::raiseSoftAP() {
|
||||||
WiFi.mode(WIFI_AP);
|
WiFi.mode(WIFI_AP);
|
||||||
WiFi.softAP(apSsid, apPassword);
|
WiFi.softAP(apSsid, apPassword);
|
||||||
Serial.printf("\n\nRunning in AP mode.\nConnect to AP %s with password %s for settings.\n\n", apSsid, apPassword);
|
Serial.println("##[BOOT]#");
|
||||||
|
BOOTLOG("************************************************");
|
||||||
|
BOOTLOG("Running in AP mode");
|
||||||
|
BOOTLOG("Connect to AP %s with password %s", apSsid, apPassword);
|
||||||
|
BOOTLOG("and go to http:/192.168.4.1/ to configure");
|
||||||
|
BOOTLOG("************************************************");
|
||||||
status = SOFT_AP;
|
status = SOFT_AP;
|
||||||
if(config.store.softapdelay>0)
|
if(config.store.softapdelay>0)
|
||||||
rtimer.once(config.store.softapdelay*60, rebootTime);
|
rtimer.once(config.store.softapdelay*60, rebootTime);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef options_h
|
#ifndef options_h
|
||||||
#define options_h
|
#define options_h
|
||||||
|
|
||||||
#define VERSION "0.8.160"
|
#define VERSION "0.8.165"
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
DO NOT EDIT THIS FILE.
|
DO NOT EDIT THIS FILE.
|
||||||
|
|||||||
@@ -18,11 +18,9 @@ bool Telnet::begin() {
|
|||||||
server.begin();
|
server.begin();
|
||||||
server.setNoDelay(true);
|
server.setNoDelay(true);
|
||||||
Serial.println("done");
|
Serial.println("done");
|
||||||
Serial.println();
|
Serial.println("##[BOOT]#");
|
||||||
BOOTLOG("************************************************");
|
BOOTLOG("Ready! Go to http:/%s/ to configure", WiFi.localIP().toString().c_str());
|
||||||
BOOTLOG("Ready! Go to http:/%s/ to configure.", WiFi.localIP().toString().c_str());
|
Serial.println("##[BOOT]#");
|
||||||
BOOTLOG("************************************************");
|
|
||||||
Serial.println();
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user