mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
init data with 0, no difference really
This commit is contained in:
@@ -422,7 +422,7 @@ void WebSettings::set_board_profile(WebSettings & settings) {
|
|||||||
|
|
||||||
// load the board profile into the data vector
|
// load the board profile into the data vector
|
||||||
// 0=led, 1=dallas, 2=rx, 3=tx, 4=button, 5=phy_type, 6=eth_power, 7=eth_phy_addr, 8=eth_clock_mode, 9=led_type
|
// 0=led, 1=dallas, 2=rx, 3=tx, 4=button, 5=phy_type, 6=eth_power, 7=eth_phy_addr, 8=eth_clock_mode, 9=led_type
|
||||||
std::vector<int8_t> data(10, 255); // initialize with 255 for all values
|
std::vector<int8_t> data(10, 0); // initialize with 0 for all values
|
||||||
if (settings.board_profile != "default") {
|
if (settings.board_profile != "default") {
|
||||||
if (!System::load_board_profile(data, settings.board_profile.c_str())) {
|
if (!System::load_board_profile(data, settings.board_profile.c_str())) {
|
||||||
#if defined(EMSESP_DEBUG)
|
#if defined(EMSESP_DEBUG)
|
||||||
|
|||||||
Reference in New Issue
Block a user