Skip to content

Commit

Permalink
Bugfix for VT_ENERGY, new data type VT_ENERGY10 and VT_ENERGY10_N
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Nov 11, 2024
1 parent 33dd9b8 commit e448100
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions BSB_LAN/BSB_LAN_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,10 @@ typedef enum{
VT_SECONDS_DWORD, // 5 Byte - 1 enable 0x01 / seconds
VT_POWER, // 5 Byte - 1 enable / value/10 kW
VT_POWER100, // 5 Byte - 1 enable / value/100 kW
// VT_ENERGY10, // 5 Byte - 1 enable / value/10 kWh
VT_ENERGY, // 5 Byte - 1 enable / value/10 kWh
VT_ENERGY_N, // 5 Byte - 1 enable / value/10 kWh
VT_ENERGY10, // 5 Byte - 1 enable / value/10 kWh
VT_ENERGY10_N, // 5 Byte - 1 enable / value/10 kWh
VT_ENERGY, // 5 Byte - 1 enable / value
VT_ENERGY_N, // 5 Byte - 1 enable / value
VT_ENERGY_MWH, // 5 Byte - 1 enable / value/100 MWh
VT_ENERGY_MWH_N, // 5 Byte - 1 enable / value/100 MWh
VT_UINT100, // 5 Byte - 1 enable / value / 100
Expand Down Expand Up @@ -837,9 +838,10 @@ const units optbl[]={
{VT_SECONDS_DWORD, 1.0, 1, 4, DT_VALS, 0, U_SEC, sizeof(U_SEC), STR_SECONDS_DWORD},
{VT_POWER, 10.0, 1, 4, DT_VALS, 1, U_KW, sizeof(U_KW), STR_POWER},
{VT_POWER100, 100.0, 0, 4, DT_VALS, 2, U_KW, sizeof(U_KW), STR_POWER100},
// {VT_ENERGY10, 10.0, 1, 4, DT_VALS, 1, U_KWH, sizeof(U_KWH), STR_ENERGY10},
{VT_ENERGY, 10.0, 1, 4, DT_VALS, 0, U_KWH, sizeof(U_KWH), STR_ENERGY},
{VT_ENERGY_N, 10.0, 6, 4, DT_VALS, 0, U_KWH, sizeof(U_KWH), STR_ENERGY},
{VT_ENERGY10, 10.0, 1, 4, DT_VALS, 1, U_KWH, sizeof(U_KWH), STR_ENERGY10},
{VT_ENERGY10_N, 10.0, 6, 4, DT_VALS, 1, U_KWH, sizeof(U_KWH), STR_ENERGY10},
{VT_ENERGY, 1.0, 1, 4, DT_VALS, 0, U_KWH, sizeof(U_KWH), STR_ENERGY},
{VT_ENERGY_N, 1.0, 6, 4, DT_VALS, 0, U_KWH, sizeof(U_KWH), STR_ENERGY},
{VT_ENERGY_MWH, 100.0, 1, 4, DT_VALS, 0, U_MWH, sizeof(U_MWH), STR_ENERGY_MWH},
{VT_ENERGY_MWH_N, 100.0, 6, 4, DT_VALS, 0, U_MWH, sizeof(U_MWH), STR_ENERGY_MWH},
{VT_UINT100, 100.0, 1, 4, DT_VALS, 2, U_NONE, sizeof(U_NONE), STR_UINT100},
Expand Down

0 comments on commit e448100

Please sign in to comment.