It's "rc_dig_in##" not "rc_dig_in_##" - no final underscore.
Also, why are you checking the value of pwm01? It seems like it would make more sense just to use:
Code:
if(rc_dig_in01) {
pwm01 = 254;
pwm02 = 254;
} else if(rc_dig_in02) {
pwm01 = 0;
pwm02 = 254;
} else if(rc_dig_in03) {
pwm01 = 254;
pwm02 = 0;
} else {
pwm01 = 127;
pwm02 = 127;
}