Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Daqifi.Desktop.Test/Device/AbstractStreamingDeviceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,8 @@ public void StartSdCardLogging_UsesCombinedAnalogMaskAndConfiguresDigitalPortsOn
"Core handles this via the channelMask parameter.");
CollectionAssert.Contains(
device.SentCommands,
$"core:{ScpiMessageProducer.EnableAdcChannels("10101").Data}",
"Core should receive a single combined binary analog mask for the active SD logging channels.");
$"core:{ScpiMessageProducer.EnableAdcChannels("21").Data}",
"Core should receive a decimal channel mask for the active SD logging channels.");
}

[TestMethod]
Expand Down
2 changes: 1 addition & 1 deletion Daqifi.Desktop/Device/AbstractStreamingDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public void StartSdCardLogging()

// The Core package resumes StartSdCardLoggingAsync continuations on the caller's
// synchronization context. Running it on the thread pool prevents UI deadlocks.
var channelMaskString = Convert.ToString((long)analogChannelMask, 2);
var channelMaskString = analogChannelMask.ToString(CultureInfo.InvariantCulture);
Task.Run(() => coreDevice.StartSdCardLoggingAsync(channelMask: channelMaskString, format: SdCardLogFormat)).GetAwaiter().GetResult();

IsLoggingToSdCard = coreDevice.IsLoggingToSdCard;
Expand Down
Loading