summaryrefslogtreecommitdiff
path: root/stm/usrsw.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-25 16:30:47 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-25 16:30:47 +0000
commit51f3a6becd8566243c12243b7c295de1fcabc388 (patch)
tree2ebaa09b139307ead6e42c6ff6aa77fb03459993 /stm/usrsw.c
parentb829b5caecd1ba4fbc30e03978776d2c868dd67b (diff)
stm: Improved ADC module; add BOARD_NAME config value.
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 162cecfcf..c3374b847 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;