This commit is contained in:
Bertrand Songis
2019-07-22 13:51:42 +02:00
parent a5a9a24929
commit 41682a2a3e
3 changed files with 10 additions and 1 deletions
+5
View File
@@ -519,6 +519,11 @@ uint32_t readTrims()
}
}
#if defined(PCBXLITE)
if (IS_SHIFT_PRESSED())
result = ((result & 0x03) << 6) | ((result & 0x0c) << 2);
#endif
return result;
}
+4
View File
@@ -266,7 +266,11 @@ enum EnumKeys
#if defined(KEYS_GPIO_PIN_SHIFT)
#define IS_SHIFT_KEY(index) (index == KEY_SHIFT)
#if defined(SIMU)
#define IS_SHIFT_PRESSED() (readKeys() & (1 << KEY_SHIFT))
#else
#define IS_SHIFT_PRESSED() (~KEYS_GPIO_REG_SHIFT & KEYS_GPIO_PIN_SHIFT)
#endif
#else
#define IS_SHIFT_KEY(index) (false)
#define IS_SHIFT_PRESSED() (false)