diff --git a/stk500v2/main.cpp b/stk500v2/main.cpp index 77fbeec..57d1a6c 100644 --- a/stk500v2/main.cpp +++ b/stk500v2/main.cpp @@ -506,10 +506,10 @@ static inline void formatErrorAnswer(Message &msg) } enum class ChipEraseState { - NONE = 0b00, - REQUEST = 0b01, - RESPONSE = 0b10, - PERFORM = 0b11, + NONE = 0, + REQUEST = (1 << 1), + RESPONSE = (1 << 2), + PERFORM = REQUEST | RESPONSE, }; constexpr ChipEraseState operator|(const ChipEraseState &self, const ChipEraseState &other)