Skip to content

Commit

Permalink
Always set up storage elements for both scales
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianSperrle committed Jan 26, 2024
1 parent 1771ee7 commit 578f927
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,10 @@ static inline int32_t getItemAddr(sto_item_id_t itemId, uint16_t* maxItemSize =
size = STRUCT_MEMBER_SIZE(sto_data_t,scaleCalibration);
break;

#if SCALE_TYPE == 0
case STO_ITEM_SCALE2_CALIBRATION_FACTOR:
addr = offsetof(sto_data_t,scale2Calibration );
size = STRUCT_MEMBER_SIZE(sto_data_t,scale2Calibration);
break;
#endif

case STO_ITEM_SCALE_KNOWN_WEIGHT:
addr = offsetof(sto_data_t,scaleKnownWeight );
Expand Down

0 comments on commit 578f927

Please sign in to comment.