1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Only use switch columns 8 and 9 with WPC and not WPC95.

This commit is contained in:
gstellenberg
2009-10-21 21:12:18 -05:00
parent 520a8a5b17
commit ac296aab3e

View File

@@ -38,6 +38,8 @@ void ConfigureSwitches(PRHandle proc, YAML::Node& yamlDoc)
// Configure switch controller registers (if the defaults aren't acceptable) // Configure switch controller registers (if the defaults aren't acceptable)
PRSwitchConfig switchConfig; PRSwitchConfig switchConfig;
switchConfig.clear = false; switchConfig.clear = false;
switchConfig.use_column_8 = machineType == kPRMachineWPC;
switchConfig.use_column_9 = machineType == kPRMachineWPC;
switchConfig.hostEventsEnable = true; switchConfig.hostEventsEnable = true;
switchConfig.directMatrixScanLoopTime = 2; // milliseconds switchConfig.directMatrixScanLoopTime = 2; // milliseconds
switchConfig.pulsesBeforeCheckingRX = 10; switchConfig.pulsesBeforeCheckingRX = 10;