Skip to content

Commit 942d062

Browse files
committed
formatting, remove wemos from board profile, fix olimex
1 parent 7c3b895 commit 942d062

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/system.cpp

+6-8
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ void System::button_init(bool refresh) {
299299

300300
if (is_valid_gpio(pbutton_gpio_)) {
301301
if (!myPButton_.init(pbutton_gpio_, HIGH)) {
302-
LOG_INFO(F("External multi-functional button not detected"));
302+
LOG_INFO(F("Multi-functional button not detected"));
303303
} else {
304-
LOG_INFO(F("External multi-functional button enabled"));
304+
LOG_INFO(F("Multi-functional button enabled"));
305305
}
306306
} else {
307307
LOG_WARNING(F("Invalid button GPIO. Check config."));
@@ -827,7 +827,7 @@ void System::console_commands(Shell & shell, unsigned int context) {
827827
return StateUpdateResult::CHANGED;
828828
},
829829
"local");
830-
shell.printfln("Loaded board profile %s with %d,%d,%d,%d,%d", board_profile.c_str(), data[0], data[1], data[2], data[3], data[4]);
830+
shell.printfln("Loaded board profile %s (%d,%d,%d,%d,%d)", board_profile.c_str(), data[0], data[1], data[2], data[3], data[4]);
831831
EMSESP::system_.network_init(true);
832832
});
833833

@@ -1023,19 +1023,17 @@ bool System::command_test(const char * value, const int8_t id) {
10231023
// returns false if profile is not found
10241024
bool System::load_board_profile(std::vector<uint8_t> & data, const std::string & board_profile) {
10251025
if (board_profile == "S32") {
1026-
data = {2, 3, 23, 5, 0}; // Gateway S32
1026+
data = {2, 3, 23, 5, 0}; // BBQKees Gateway S32
10271027
} else if (board_profile == "E32") {
1028-
data = {2, 4, 5, 17, 33}; // Gateway E32
1028+
data = {2, 4, 5, 17, 33}; // BBQKees Gateway E32
10291029
} else if (board_profile == "MT-ET") {
10301030
data = {2, 18, 23, 5, 0}; // MT-ET Live D1 Mini
10311031
} else if (board_profile == "NODEMCU") {
10321032
data = {2, 18, 23, 5, 0}; // NodeMCU 32S
10331033
} else if (board_profile == "LOLIN") {
10341034
data = {2, 18, 17, 16, 0}; // Lolin D32
1035-
} else if (board_profile == "WEMOS") {
1036-
data = {2, 18, 17, 16, 0}; // Wemos Mini D1 ESP32
10371035
} else if (board_profile == "OLIMEX") {
1038-
data = {0, 4, 5, 17, 34}; // Olimex ESP32-EVB
1036+
data = {0, 0, 36, 4, 34}; // Olimex ESP32-EVB (uses U1TXD/U1RXD/BUTTON, no LED or Dallas)
10391037
} else if (board_profile == "TLK110") {
10401038
data = {2, 4, 5, 17, 33}; // Generic Ethernet (TLK110)
10411039
} else if (board_profile == "LAN8720") {

0 commit comments

Comments
 (0)