update servicepoint2
This commit is contained in:
parent
ff70f21416
commit
167aafc9e8
|
@ -31,7 +31,7 @@ internal sealed class Endpoints(
|
||||||
app.Map("/controls", ConnectControlsAsync);
|
app.Map("/controls", ConnectControlsAsync);
|
||||||
app.MapGet("/map", () => mapService.MapNames);
|
app.MapGet("/map", () => mapService.MapNames);
|
||||||
app.MapPost("/map", PostMap);
|
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.MapGet("/map/{name}", GetMapByName);
|
||||||
|
|
||||||
app.MapHealthChecks("/health", new HealthCheckOptions
|
app.MapHealthChecks("/health", new HealthCheckOptions
|
||||||
|
|
|
@ -66,8 +66,8 @@ internal sealed class SendToServicePointDisplay : IFrameConsumer
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_displayConnection.Send(Command.BitmapLinearWin(0, 0, observerPixels.Clone()));
|
_displayConnection.Send(Command.BitmapLinearWin(0, 0, observerPixels.Clone()).IntoPacket());
|
||||||
_displayConnection.Send(Command.Cp437Data(MapService.TilesPerRow, 0, _scoresBuffer.Clone()));
|
_displayConnection.Send(Command.Cp437Data(MapService.TilesPerRow, 0, _scoresBuffer.Clone()).IntoPacket());
|
||||||
}
|
}
|
||||||
catch (SocketException ex)
|
catch (SocketException ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9b618d931a7ea12e745f3adaca6116806c37fe6a
|
Subproject commit 1dad113ca1fab998bec9e2084e1751d640426619
|
Loading…
Reference in a new issue