From 5b0e627f6ddac46719c8287bde813ad50317db55 Mon Sep 17 00:00:00 2001 From: Bernhard Kaszt Date: Wed, 8 Mar 2023 20:29:08 +0100 Subject: [PATCH] Fix battery pin mapping not being shown in device manager UI (Pylontech Battery CAN Bus) --- webapp/src/components/PinInfo.vue | 12 ++++++++++++ webapp/src/types/PinMapping.ts | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/PinInfo.vue b/webapp/src/components/PinInfo.vue index 1458b4f4..45d4ccaa 100644 --- a/webapp/src/components/PinInfo.vue +++ b/webapp/src/components/PinInfo.vue @@ -119,6 +119,18 @@ {{ currentPinAssignment?.victron?.tx }} + + Battery + RX + {{ selectedPinAssignment?.battery?.rx }} + {{ currentPinAssignment?.battery?.rx }} + + + TX + {{ selectedPinAssignment?.battery?.tx }} + {{ currentPinAssignment?.battery?.tx }} + + diff --git a/webapp/src/types/PinMapping.ts b/webapp/src/types/PinMapping.ts index e185b0d2..41ae0572 100644 --- a/webapp/src/types/PinMapping.ts +++ b/webapp/src/types/PinMapping.ts @@ -30,12 +30,18 @@ export interface Victron { tx: number; } +export interface Battery { + rx: number; + tx: number; +} + export interface Device { name: string; nrf24: Nrf24; eth: Ethernet; display: Display; victron: Victron; + battery: Battery; } -export interface PinMapping extends Array{} \ No newline at end of file +export interface PinMapping extends Array{}