I'm getting this compiler error on the latest version of Arduino (version 2.3.4)
The last time I worked on this code was about a year ago (not sure what version) and it compiled OK with no errors or warnings. I'm also don't understand " PORTBemulation" on the last few lines.
Anyone have an idea what's going on. Has some feature been depreciated?
C:\Users\pangl\OneDrive\Documents\Arduino\FIlterControl_copy_MovingAverage_Rev2\FIlterControl_copy_MovingAverage_Rev2.ino: In function 'void AlarmLedOn()':
C:\Users\pangl\OneDrive\Documents\Arduino\FIlterControl_copy_MovingAverage_Rev2\FIlterControl_copy_MovingAverage_Rev2.ino:75:18: error: no match for 'operator&' (operand types are 'PORTBemulation' and 'int')
75 | PORTB = PORTB & 0b11111110;
| ~~~~~ ^ ~~~~~~~~~~
| | |
| | int
| PORTBemulation
C:\Users\pangl\OneDrive\Documents\Arduino\FIlterControl_copy_MovingAverage_Rev2\FIlterControl_copy_MovingAverage_Rev2.ino: In function 'void AlarmLedOff()':
C:\Users\pangl\OneDrive\Documents\Arduino\FIlterControl_copy_MovingAverage_Rev2\FIlterControl_copy_MovingAverage_Rev2.ino:81:18: error: no match for 'operator|' (operand types are 'PORTBemulation' and 'int')
81 | PORTB = PORTB | 0b00000001;
| ~~~~~ ^ ~~~~~~~~~~
| | |
| | int
| PORTBemulation
exit status 1
Compilation error: no match for 'operator&' (operand types are 'PORTBemulation' and 'int')