update servicepoint2
This commit is contained in:
parent
ff70f21416
commit
167aafc9e8
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue