Merge pull request #132 from helgeerbe/fix-battery-pinmapping-missing-in-ui

This commit is contained in:
helgeerbe 2023-03-09 10:31:40 +01:00 committed by GitHub
commit 87794e0793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -119,6 +119,18 @@
<td>{{ currentPinAssignment?.victron?.tx }}</td>
</tr>
<tr>
<td rowspan="2">Battery</td>
<td>RX</td>
<td>{{ selectedPinAssignment?.battery?.rx }}</td>
<td>{{ currentPinAssignment?.battery?.rx }}</td>
</tr>
<tr>
<td>TX</td>
<td>{{ selectedPinAssignment?.battery?.tx }}</td>
<td>{{ currentPinAssignment?.battery?.tx }}</td>
</tr>
</tbody>
</table>
</div>

View File

@ -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<Device>{}