chore: enumer already ensure lower case matching
This commit is contained in:
parent
c049f008e7
commit
6fb28df19b
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ type Operation struct {
|
|||
// ParseOperation parses an MBMD measurement or SunsSpec point definition into a modbus operation
|
||||
func ParseOperation(dev meters.Device, measurement string, op *Operation) (err error) {
|
||||
// if measurement cannot be parsed it could be SunSpec model/block/point
|
||||
if op.MBMD.IEC61850, err = meters.MeasurementString(strings.ToLower(measurement)); err != nil {
|
||||
if op.MBMD.IEC61850, err = meters.MeasurementString(measurement); err != nil {
|
||||
op.SunSpec.Model, op.SunSpec.Block, op.SunSpec.Point, err = ParsePoint(measurement)
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue