From 4e8867c819fcf23300f4181144666ee06eaa9ec9 Mon Sep 17 00:00:00 2001 From: Max Paperno Date: Sun, 10 Dec 2017 06:21:17 -0500 Subject: [PATCH] [Companion] Include global functions and function source types in conversions. --- companion/src/radiodata.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/companion/src/radiodata.cpp b/companion/src/radiodata.cpp index d96ceaf53..f624b137f 100644 --- a/companion/src/radiodata.cpp +++ b/companion/src/radiodata.cpp @@ -168,6 +168,8 @@ void LogicalSwitchData::convert(Board::Type before, Board::Type after) void CustomFunctionData::convert(Board::Type before, Board::Type after) { swtch.convert(before, after); + if (func == FuncVolume || func == FuncPlayValue || (func >= FuncAdjustGV1 && func <= FuncAdjustGVLast && adjustMode == 1)) + param = RawSource(param).convert(before, after).toValue(); } void FlightModeData::convert(Board::Type before, Board::Type after) @@ -203,6 +205,10 @@ void GeneralSettings::convert(Board::Type before, Board::Type after) { // Here we can add explicit conversions when moving from one board to another + for (int i=0; i