From 97e27ccc2bc815686dabc6ab323984913cd726a4 Mon Sep 17 00:00:00 2001 From: Michael Croes Date: Tue, 1 Aug 2023 22:51:47 +0200 Subject: [PATCH] chore(ReadStatusAsync): Make cancellationToken optional --- S7.Net/PlcAsynchronous.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S7.Net/PlcAsynchronous.cs b/S7.Net/PlcAsynchronous.cs index c280b0b..726e6cb 100644 --- a/S7.Net/PlcAsynchronous.cs +++ b/S7.Net/PlcAsynchronous.cs @@ -316,7 +316,7 @@ namespace S7.Net /// Read the current status from the PLC. A value of 0x08 indicates the PLC is in run status, regardless of the PLC type. /// /// A task that represents the asynchronous operation, with it's result set to the current PLC status on completion. - public async Task ReadStatusAsync(CancellationToken cancellationToken) { + public async Task ReadStatusAsync(CancellationToken cancellationToken = default) { var dataToSend = BuildSzlReadRequestPackage(0x0424, 0); var s7data = await RequestTsduAsync(dataToSend, cancellationToken);