diff --git a/a2l/record_layout.go b/a2l/record_layout.go index 90ac2a0..ffef354 100644 --- a/a2l/record_layout.go +++ b/a2l/record_layout.go @@ -963,7 +963,6 @@ forLooP: } else { break forLooP } - } return absPos, err } diff --git a/calib_data_test.go b/calib_data_test.go index 621bd23..905233b 100644 --- a/calib_data_test.go +++ b/calib_data_test.go @@ -48,7 +48,7 @@ func TestReadCalibration(t *testing.T) { log.Warn().Msg("time for parsing test files: " + fmt.Sprint(elapsed.Milliseconds())) startTime := time.Now() //find object in a2l struct - obj := cd.getObjectByIdent("ASAM.M.MATRIX_DIM_8_4_2.UBYTE.IDENTICAL") + obj := cd.GetObjectByIdent("ASAM.M.MATRIX_DIM_8_4_2.UBYTE.IDENTICAL") if len(obj) == 0 { t.Fatalf("unable to find known identifier") } diff --git a/record_manager.go b/record_manager.go index 9720bea..16a6568 100644 --- a/record_manager.go +++ b/record_manager.go @@ -75,9 +75,9 @@ func (cd *CalibrationData) getRecordLayout(c *a2l.Characteristic) (*a2l.RecordLa return &rl, nil } -// getObjectByIdent returns an object with a given identifier that is defined within the a2l +// GetObjectByIdent returns an object with a given identifier that is defined within the a2l // not all datastructures are checked. Only the most relevant ones -func (cd *CalibrationData) getObjectByIdent(ident string) []interface{} { +func (cd *CalibrationData) GetObjectByIdent(ident string) []interface{} { var calibrationObjects []interface{} var buf interface{} var exists bool