diff --git a/tanks-backend/TanksServer/Endpoints.cs b/tanks-backend/TanksServer/Endpoints.cs index 99da3b1..baf476b 100644 --- a/tanks-backend/TanksServer/Endpoints.cs +++ b/tanks-backend/TanksServer/Endpoints.cs @@ -31,7 +31,7 @@ internal sealed class Endpoints( app.Map("/controls", ConnectControlsAsync); app.MapGet("/map", () => mapService.MapNames); app.MapPost("/map", PostMap); - app.MapPost("/resetDisplay", () => displayConnection.Send(Command.HardReset())); + app.MapPost("/resetDisplay", () => displayConnection.Send(Command.HardReset().IntoPacket())); app.MapGet("/map/{name}", GetMapByName); app.MapHealthChecks("/health", new HealthCheckOptions diff --git a/tanks-backend/TanksServer/Interactivity/SendToServicePointDisplay.cs b/tanks-backend/TanksServer/Interactivity/SendToServicePointDisplay.cs index 0c7cc7d..a21185b 100644 --- a/tanks-backend/TanksServer/Interactivity/SendToServicePointDisplay.cs +++ b/tanks-backend/TanksServer/Interactivity/SendToServicePointDisplay.cs @@ -66,8 +66,8 @@ internal sealed class SendToServicePointDisplay : IFrameConsumer try { - _displayConnection.Send(Command.BitmapLinearWin(0, 0, observerPixels.Clone())); - _displayConnection.Send(Command.Cp437Data(MapService.TilesPerRow, 0, _scoresBuffer.Clone())); + _displayConnection.Send(Command.BitmapLinearWin(0, 0, observerPixels.Clone()).IntoPacket()); + _displayConnection.Send(Command.Cp437Data(MapService.TilesPerRow, 0, _scoresBuffer.Clone()).IntoPacket()); } catch (SocketException ex) { diff --git a/tanks-backend/servicepoint b/tanks-backend/servicepoint index 9b618d9..1dad113 160000 --- a/tanks-backend/servicepoint +++ b/tanks-backend/servicepoint @@ -1 +1 @@ -Subproject commit 9b618d931a7ea12e745f3adaca6116806c37fe6a +Subproject commit 1dad113ca1fab998bec9e2084e1751d640426619