Skip to content

Commit

Permalink
fix: change relative non-persistent type to 0x0003
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBoehm committed Jan 23, 2025
1 parent 81a15d7 commit cebb1a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Hoymiles/src/commands/ActivePowerControlCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

typedef enum { // ToDo: to be verified by field tests
AbsolutNonPersistent = 0x0000, // 0
RelativNonPersistent = 0x0001, // 1
RelativNonPersistent = 0x0003, // 3 TODO(andreasboehm): not sure why this is now 3 instead of 1. Probably only works for inverters that support PDL
AbsolutPersistent = 0x0100, // 256
RelativPersistent = 0x0101 // 257
} PowerLimitControlType;
Expand Down
6 changes: 3 additions & 3 deletions webapp/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="dropdown-item" @click="onSelectType(1)" href="#">{{ $t('home.Relative') }}</a>
<a class="dropdown-item" @click="onSelectType(3)" href="#">{{ $t('home.Relative') }}</a>
</li>
<li>
<a class="dropdown-item" @click="onSelectType(0)" href="#">{{ $t('home.Absolute') }}</a>
Expand Down Expand Up @@ -862,7 +862,7 @@ export default defineComponent({
this.showAlertLimit = false;
this.targetLimitList.serial = '';
this.targetLimitList.limit_value = 0;
this.targetLimitType = 1;
this.targetLimitType = 3;
this.targetLimitTypeText = this.$t('home.Relative');
this.limitSettingLoading = true;
Expand Down Expand Up @@ -908,7 +908,7 @@ export default defineComponent({
});
},
onSelectType(type: number) {
if (type == 1) {
if (type == 3) {
this.targetLimitTypeText = this.$t('home.Relative');
this.targetLimitMin = 0;
this.targetLimitMax = 100;
Expand Down

0 comments on commit cebb1a3

Please sign in to comment.