From: R. Steve McKown Date: Mon, 12 Dec 2011 02:43:24 +0000 (-0700) Subject: btn_rs() returned rocker switch buttons reversed X-Git-Tag: 1.0~14 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=rgblamp.git;a=commitdiff_plain;h=929d03b37bea1d8763980f447c5f06582cb16bdf btn_rs() returned rocker switch buttons reversed --- diff --git a/btn.h b/btn.h index 5d4e749..c4263d5 100644 --- 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();