Releases: LdDl/go-egts
Releases · LdDl/go-egts
Version v0.7.1 - EGTS_SR_ACCEL_DATA
What's new:
- Added implementation of EGTS_SR_ACCEL_DATA
Issue - #10
Pull request- #9
Thanks to @sinkevichmm - Fixed bug for EGTS_SR_LIQUID_LEVEL_SENSOR
LiquidLevelSensorb and Odometer fields should be binarized as BigEndian instead of LittleEndian.
Pull request - #8
Thanks to @sinkevichmm
Version 0.6.1
Closed issue #6 - add Direction field for SRPosData as Uint16
Version 0.5.7
We've seen error:
panic: runtime error: slice bounds out of range in this line https://github.com/LdDl/go-egts/blob/master/egts/packet/packet.go#L130.
Catch the error here: https://github.com/LdDl/go-egts/blob/master/egts/packet/packet.go#L130
Fixes in subrecord.SRStateData
Closing #2
Remove legacy code and remove panics index out of range
in subrecord.SRStateData
Handle EGTS_PC_SRVC_NFOUND
Now return "EGTS_PC_SRVC_NFOUND" error in case when it's not possible to handle SubrecordData for provided SubrecordType
https://github.com/LdDl/go-egts/blob/master/egts/packet/record_data.go#L74
default:
err = fmt.Errorf("RD;EGTS_PC_SRVC_NFOUND")
return err
Fix direction
Fix direction for SR_POS_DATA:
if subr.Direction, err = buffer.ReadByte(); err != nil {
return fmt.Errorf("EGTS_SR_POS_DATA; Error reading DIR")
}
subr.Direction = subr.Direction | subr.DirhFlag<<7