ara-software / AraRoot

ARA data access framework
2 stars 7 forks source link

Preventing overflow of L1&2 scaler #35

Closed MyoungchulK closed 2 years ago

MyoungchulK commented 2 years ago

Since multiplication between l1&2 Scaler(uint16_t) and preScale(uint8_t) is happening before return by function, It is causing overflow

Possibly initial high peak value (not that important though) of L1 Rate on AWARE is miscalculated

If this is intended overflow, please let me know Hope these minor updates make sense!