X3 switch fixes

This commit is contained in:
Bertrand Songis
2019-02-18 16:15:56 +01:00
parent decfa57149
commit 8772123250
5 changed files with 24 additions and 15 deletions
+3 -5
View File
@@ -207,15 +207,13 @@ uint32_t switchState(uint8_t index)
ADD_3POS_CASE(A, 0);
ADD_3POS_CASE(B, 1);
ADD_3POS_CASE(C, 2);
#if defined(PCBX3)
ADD_2POS_CASE(D);
#else
#if !defined(PCBX3)
ADD_3POS_CASE(D, 3);
#endif
#if defined(PCBXLITES)
#if defined(PCBXLITES) || defined(PCBX3)
ADD_2POS_CASE(E);
ADD_2POS_CASE(F);
// no SWF, SWG and SWH on XLITE
// no SWG and SWH on XLITES and X3
#elif defined(PCBXLITE) || defined(PCBX3)
// no SWE, SWF, SWG and SWH on X3 and XLITE
#elif defined(PCBX7)