Skip to content

Commit

Permalink
prepare for supporting huawei
Browse files Browse the repository at this point in the history
  • Loading branch information
skippermeister committed Sep 7, 2024
1 parent eea743c commit 9240f22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/BatteryStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -1071,9 +1071,9 @@ class ZendureBatteryStats : public BatteryStats {
void calculateAggregatedPackData();

void setManufacture(const char* manufacture) {
_manufacturer = String(manufacture);
setManufacturer(manufacture);
if (_device){
_manufacturer += " " + _device;
setManufacturer(String(manufacture) + " " + _device);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/DalyBmsController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ void DalyBmsController::decodeData(std::vector<uint8_t> rxBuffer)
}
if (_verboseLogging)
MessageOutput.printf("%s %d bms HW version: %s\r\n", TAG, it[4], _stats->_bmsHWversion);
_stats->_manufacturer = String("Daly ") + String(_stats->_bmsHWversion);
_stats->setManufacturer(String("Daly ") + String(_stats->_bmsHWversion));
break;

case Command::REQUEST_BATTERY_LEVEL:
Expand Down

0 comments on commit 9240f22

Please sign in to comment.