From cfac607c7d4dfd90e554b38c196f4f5fa5a836f6 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 22 May 2025 08:21:06 -0400 Subject: [PATCH] Use null for 0 speed internally --- CHANGELIST.md | 1 + MPF.ExecutionContexts/Redumper/ExecutionContext.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index 80fc8c4a..665acbac 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -58,6 +58,7 @@ - Fix speed dropdown with Redumper - Update redumper to build 585 - Further fix speed dropdown with Redumper +- Use null for 0 speed internally ### 3.3.0 (2025-01-03) diff --git a/MPF.ExecutionContexts/Redumper/ExecutionContext.cs b/MPF.ExecutionContexts/Redumper/ExecutionContext.cs index f8fe1b20..f2023c1d 100644 --- a/MPF.ExecutionContexts/Redumper/ExecutionContext.cs +++ b/MPF.ExecutionContexts/Redumper/ExecutionContext.cs @@ -40,7 +40,7 @@ namespace MPF.ExecutionContexts.Redumper else { this[FlagStrings.Speed] = false; - (_inputs[FlagStrings.Speed] as Int32Input)?.SetValue(0); + (_inputs[FlagStrings.Speed] as Int32Input)?.SetValue(null); } } } @@ -302,7 +302,7 @@ namespace MPF.ExecutionContexts.Redumper else { this[FlagStrings.Speed] = false; - (_inputs[FlagStrings.Speed] as Int32Input)?.SetValue(0); + (_inputs[FlagStrings.Speed] as Int32Input)?.SetValue(null); } // Set user-defined options