summaryrefslogtreecommitdiffstatshomepage
path: root/stm/usrsw.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/usrsw.c')
-rw-r--r--stm/usrsw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/usrsw.c b/stm/usrsw.c
index 162cecfcf0..c3374b847e 100644
--- a/stm/usrsw.c
+++ b/stm/usrsw.c
@@ -44,7 +44,7 @@ void switch_init(void) {
}
int switch_get(void) {
-#if defined (PYBOARD) || defined (PYBOARD4)
+#if defined (PYBOARD3) || defined (PYBOARD4)
if (USRSW_PORT->IDR & USRSW_PIN) {
// pulled high, so switch is not pressed
return 0;