Skip to content

Commit

Permalink
fix(plc4go/cbus): removed wrong mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Aug 16, 2022
1 parent ed5297d commit 4925d81
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions plc4go/internal/cbus/Reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4925d81

Please sign in to comment.