Skip to content

Releases: LdDl/go-egts

Version v0.7.1 - EGTS_SR_ACCEL_DATA

19 Apr 14:43
Compare
Choose a tag to compare

What's new:

  1. Added implementation of EGTS_SR_ACCEL_DATA
    Issue - #10
    Pull request- #9
    Thanks to @sinkevichmm
  2. 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

18 Aug 08:49
eb669ec
Compare
Choose a tag to compare

Closed issue #6 - add Direction field for SRPosData as Uint16

Version 0.5.7

03 Aug 05:03
Compare
Choose a tag to compare

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

25 Jun 18:59
4ffd98f
Compare
Choose a tag to compare

Closing #2
Remove legacy code and remove panics index out of range in subrecord.SRStateData

Handle EGTS_PC_SRVC_NFOUND

05 Apr 15:37
Compare
Choose a tag to compare

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

19 Mar 09:46
Compare
Choose a tag to compare

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