Skip to content

Commit

Permalink
moved to battery provider with index 7 to prevent collision with #1199
Browse files Browse the repository at this point in the history
…and #1218
  • Loading branch information
vaterlangen committed Sep 14, 2024
1 parent b2cef7d commit 8583316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void BatteryClass::updateSettings()
case 4:
_upProvider = std::make_unique<PytesCanReceiver>();
break;
case 5:
case 7:
_upProvider = std::make_unique<ZendureBattery>();
break;
default:
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/views/BatteryAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
</template>
</CardElement>

<template v-if="batteryConfigList.enabled && batteryConfigList.provider == 5">
<template v-if="batteryConfigList.enabled && batteryConfigList.provider == 7">
<CardElement :text="$t('batteryadmin.ZendureConfiguration')" textVariant="text-bg-primary" addSpace>
<div class="row mb-3">
<label for="zendure_device_type" class="col-sm-2 col-form-label">
Expand Down Expand Up @@ -329,7 +329,7 @@ export default defineComponent({
{ key: 2, value: 'Mqtt' },
{ key: 3, value: 'Victron' },
{ key: 4, value: 'PytesCan' },
{ key: 5, value: 'ZendureLocalMqtt' },
{ key: 7, value: 'ZendureLocalMqtt' },
],
jkBmsInterfaceTypeList: [
{ key: 0, value: 'Uart' },
Expand Down

0 comments on commit 8583316

Please sign in to comment.