Skip to content

Commit

Permalink
CAN settings; multiple selection of the same BMS prevented as data so…
Browse files Browse the repository at this point in the history
…urce
  • Loading branch information
shining-man committed Feb 27, 2024
1 parent 8757165 commit d54ebe5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Canbus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ void loadCanSettings()

u8_mBmsDatasourceAdd=(((uint32_t)WebSettings::getInt(ID_PARAM_BMS_CAN_DATASOURCE_SS1,0,DT_ID_PARAM_BMS_CAN_DATASOURCE_SS1))&bmsConnectFilter);

// In den zusätzlichen Datenquellen die Masterquelle entfernen
if(u8_mBmsDatasource>=BT_DEVICES_COUNT) bitClear(u8_mBmsDatasourceAdd,u8_mBmsDatasource-BT_DEVICES_COUNT);

BSC_LOGI(TAG,"loadCanSettings(): dataSrcAdd=%i, u8_mBmsDatasource=%i, bmsConnectFilter=%i, u8_mBmsDatasourceAdd=%i",WebSettings::getInt(ID_PARAM_BMS_CAN_DATASOURCE_SS1,0,DT_ID_PARAM_BMS_CAN_DATASOURCE_SS1),u8_mBmsDatasource,bmsConnectFilter, u8_mBmsDatasourceAdd);
}

Expand Down

0 comments on commit d54ebe5

Please sign in to comment.