Problems with macors

We need to make sure that we use parentheses in our demo code whenever we define a macro. My student has spent two hours trying to debug if (SW1 == 0) expression just because our demo code has #define SW1 P1IN&BIT0 instead of #define SW1 (P1IN&BIT0).

Edited by Igor Semenov