Fix macOS Bluetooth state and add RTK debug console
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user