]> oss.titaniummirror.com Git - rgblamp.git/commitdiff
btn_rs() returned rocker switch buttons reversed
authorR. Steve McKown <rsmckown@gmail.com>
Mon, 12 Dec 2011 02:43:24 +0000 (19:43 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Mon, 12 Dec 2011 02:43:24 +0000 (19:43 -0700)
btn.h

diff --git a/btn.h b/btn.h
index 5d4e7494e02e62c8c8b5f6c70864ffea7148ee2b..c4263d5c00400408531373538303c0ea743c10be 100644 (file)
--- a/btn.h
+++ b/btn.h
@@ -31,7 +31,7 @@ enum {
 #define btn_pb() (RB1)
 
 /* Read the current state of the rocker switch */
-#define btn_rs() (RB4 + ((unsigned char)RB2 << 1))
+#define btn_rs() (RB2 + ((unsigned char)RB4 << 1))
 
 /* Enable the pushbutton from user code */
 void btn_pben();