Skip to content

Commit

Permalink
Add <= 1.4.0 hubs P998DR RFID fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Nov 22, 2024
1 parent 9e31bd5 commit 2bf61a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiveControlGateway/Controllers/HubV1Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public override ValueTask Control(List<OpenShock.Serialization.Gateway.ShockerCo
{
Duration = x.Duration,
Type = x.Type,
Id = x.Id,
Id = x.Model == Serialization.Types.ShockerModelType.Petrainer998DR ? (ushort)(x.Id << 1) : x.Id, // Fix for old hubs, their ids was serialized wrongly in the RFTransmitter, the V1 endpoint is being phased out, so this wont stay here forever
Intensity = x.Intensity,
Model = x.Model
}).ToList()
Expand Down

0 comments on commit 2bf61a4

Please sign in to comment.