ESP32 FlipDisc.cpp:263:20: error & should be &&
Closed this issue · 1 comments
ednieuw commented
when compiling with Arduino ESP32 board the following error occurs
c:\Users\ednie\Documents\Files\Arduino\libraries\FlipDisc\src\FlipDisc.cpp: In member function 'void FlipDisc::Display_7Seg(uint8_t, uint8_t)':
c:\Users\ednie\Documents\Files\Arduino\libraries\FlipDisc\src\FlipDisc.cpp:263:20: error: suggest parentheses around comparison in operand of '&' [-Werror=parentheses]
if(disc_number >= 8 & disc_number < 16) {bit_number = disc_number - 8; current_column = 1;}
~~~~~~~~~~~~^~~~~
cc1plus.exe: some warnings being treated as errors
& should be &&
marcinsaj commented
Fixed. Thank you.