diff --git a/src/Asv.Mavlink/Microservices/Telemetry/Client/ITelemetryClient.cs b/src/Asv.Mavlink/Microservices/Telemetry/Client/ITelemetryClient.cs index 0897d00e..e320aa42 100644 --- a/src/Asv.Mavlink/Microservices/Telemetry/Client/ITelemetryClient.cs +++ b/src/Asv.Mavlink/Microservices/Telemetry/Client/ITelemetryClient.cs @@ -5,6 +5,7 @@ using Asv.Common; using Asv.Mavlink.V2.Common; using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging.Abstractions; using ZLogger; namespace Asv.Mavlink @@ -120,6 +121,7 @@ public TelemetryClient( ILogger? logger = null) : base("RTT", connection, identity, seq,scheduler,logger) { + _logger = logger ?? NullLogger.Instance; _radio = new RxValue().DisposeItWith(Disposable); InternalFilter().Select(p=>p.Payload).Subscribe(_radio).DisposeItWith(Disposable); _systemStatus = new RxValue().DisposeItWith(Disposable);