update servicepoint2

This commit is contained in:
Vinzenz Schroeter 2024-05-15 20:38:16 +02:00
parent ff70f21416
commit 167aafc9e8
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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)
{

@ -1 +1 @@
Subproject commit 9b618d931a7ea12e745f3adaca6116806c37fe6a
Subproject commit 1dad113ca1fab998bec9e2084e1751d640426619