You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/08/17 09:13:08 UTC

[plc4x] 01/03: fix(plc4go/cbus): removed wrong mapping

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 4925d81a992fd684fd0f5abe645e7f0712ecd4db
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Aug 16 15:40:07 2022 +0200

    fix(plc4go/cbus): removed wrong mapping
---
 plc4go/internal/cbus/Reader.go | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/plc4go/internal/cbus/Reader.go b/plc4go/internal/cbus/Reader.go
index bd7845bf4..bbc90e79c 100644
--- a/plc4go/internal/cbus/Reader.go
+++ b/plc4go/internal/cbus/Reader.go
@@ -350,17 +350,6 @@ func (m *Reader) Read(ctx context.Context, readRequest model.PlcReadRequest) <-c
 								addPlcValue(fieldNameCopy, spiValues.NewPlcByteArray(identifyReplyCommand.GetTerminalLevels()))
 							case readWriteModel.IdentifyReplyCommandTypeExactly:
 								addPlcValue(fieldNameCopy, spiValues.NewPlcSTRING(identifyReplyCommand.GetUnitType()))
-							case readWriteModel.IdentifyReplyCommandUnitSummaryExactly:
-								addPlcValue(fieldNameCopy, spiValues.NewPlcStruct(map[string]values.PlcValue{
-									"AssertingNetworkBurden": spiValues.NewPlcBOOL(identifyReplyCommand.GetAssertingNetworkBurden()),
-									"RestrikeTimingActive":   spiValues.NewPlcBOOL(identifyReplyCommand.GetRestrikeTimingActive()),
-									"RemoteOFFInputAsserted": spiValues.NewPlcBOOL(identifyReplyCommand.GetRemoteOFFInputAsserted()),
-									"RemoteONInputAsserted":  spiValues.NewPlcBOOL(identifyReplyCommand.GetRemoteONInputAsserted()),
-									"LocalToggleEnabled":     spiValues.NewPlcBOOL(identifyReplyCommand.GetLocalToggleEnabled()),
-									"LocalToggleActiveState": spiValues.NewPlcBOOL(identifyReplyCommand.GetLocalToggleActiveState()),
-									"ClockGenerationEnabled": spiValues.NewPlcBOOL(identifyReplyCommand.GetClockGenerationEnabled()),
-									"UnitGeneratingClock":    spiValues.NewPlcBOOL(identifyReplyCommand.GetUnitGeneratingClock()),
-								}))
 							default:
 								log.Error().Msgf("Unmapped type %T", identifyReplyCommand)
 								requestWasOk <- false