diff --git a/SimHubPlugin/SettingsControlDemo.xaml b/SimHubPlugin/SettingsControlDemo.xaml
index 056a83cc..4b042991 100644
--- a/SimHubPlugin/SettingsControlDemo.xaml
+++ b/SimHubPlugin/SettingsControlDemo.xaml
@@ -1583,33 +1583,33 @@
-
+
-
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
@@ -1622,33 +1622,33 @@
-
+
-
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
diff --git a/SimHubPlugin/SettingsControlDemo.xaml.cs b/SimHubPlugin/SettingsControlDemo.xaml.cs
index f032f2d5..5f26f7ef 100644
--- a/SimHubPlugin/SettingsControlDemo.xaml.cs
+++ b/SimHubPlugin/SettingsControlDemo.xaml.cs
@@ -1049,10 +1049,10 @@ public void updateTheGuiFromConfig()
checkbox_enable_CV2.IsChecked = false;
}
Slider_CV1_trigger.Value = Plugin.Settings.CV1_trigger[indexOfSelectedPedal_u];
- Slider_CV1_AMP.Value = dap_config_st[indexOfSelectedPedal_u].payloadPedalConfig_.CV_amp_1;
+ Slider_CV1_AMP.Value = (float)dap_config_st[indexOfSelectedPedal_u].payloadPedalConfig_.CV_amp_1/20.0f;
Slider_CV1_freq.Value = dap_config_st[indexOfSelectedPedal_u].payloadPedalConfig_.CV_freq_1;
Slider_CV2_trigger.Value = Plugin.Settings.CV2_trigger[indexOfSelectedPedal_u];
- Slider_CV2_AMP.Value = dap_config_st[indexOfSelectedPedal_u].payloadPedalConfig_.CV_amp_2;
+ Slider_CV2_AMP.Value = (float)dap_config_st[indexOfSelectedPedal_u].payloadPedalConfig_.CV_amp_2/20.0f;
Slider_CV2_freq.Value = dap_config_st[indexOfSelectedPedal_u].payloadPedalConfig_.CV_freq_2;
label_CV1_trigger.Content = "Effect Trigger:" + Plugin.Settings.CV1_trigger[indexOfSelectedPedal_u];
label_CV1_AMP.Content = "Effect Amplitude:" + (float)dap_config_st[indexOfSelectedPedal_u].payloadPedalConfig_.CV_amp_1/20.0f + "kg";
@@ -5453,12 +5453,12 @@ private void Slider_CV1_freq_ValueChanged(object sender, RoutedPropertyChangedEv
private void checkbox_enable_CV2_Checked(object sender, RoutedEventArgs e)
{
- Plugin.Settings.CV1_enable_flag[indexOfSelectedPedal_u] = true;
+ Plugin.Settings.CV2_enable_flag[indexOfSelectedPedal_u] = true;
}
private void checkbox_enable_CV2_Unchecked(object sender, RoutedEventArgs e)
{
- Plugin.Settings.CV1_enable_flag[indexOfSelectedPedal_u] = false;
+ Plugin.Settings.CV2_enable_flag[indexOfSelectedPedal_u] = false;
}
private void Bind_CV2_Click(object sender, RoutedEventArgs e)
diff --git a/SimHubPlugin/bin/DiyActivePedal.dll b/SimHubPlugin/bin/DiyActivePedal.dll
index 319bf57f..a40825e7 100644
Binary files a/SimHubPlugin/bin/DiyActivePedal.dll and b/SimHubPlugin/bin/DiyActivePedal.dll differ