From 6fb28df19b3e96f0ed10ebfb78b2a83b45741466 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 10 Sep 2023 14:33:38 +0200 Subject: [PATCH] chore: enumer already ensure lower case matching --- util/modbus/modbus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/modbus/modbus.go b/util/modbus/modbus.go index acc91e3f4..ef70018de 100644 --- a/util/modbus/modbus.go +++ b/util/modbus/modbus.go @@ -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 }