Fix macOS Bluetooth state and add RTK debug console

This commit is contained in:
Brent Perteet
2026-07-10 20:48:42 -05:00
parent 6404cd9a7e
commit 436633568c
4 changed files with 116 additions and 19 deletions

View File

@@ -24,6 +24,8 @@ public sealed class MaglinkService : IAsyncDisposable
public event EventHandler<GnssFix>? FixReceived;
public event EventHandler<GnssDeviceInfo>? DeviceInfoReceived;
/// <summary>Every complete line received from the RTK receiver, before validation or parsing.</summary>
public event EventHandler<string>? LineReceived;
public event EventHandler? Disconnected;
/// <summary>Device-name filter for scan results (ML-*).</summary>
@@ -62,6 +64,8 @@ public sealed class MaglinkService : IAsyncDisposable
private void OnLineReceived(object? sender, string line)
{
LineReceived?.Invoke(this, line);
if (line.StartsWith("$GNPOS,", StringComparison.Ordinal))
{
if (!NmeaSentence.VerifyChecksum(line))