Skip to content

Commit

Permalink
Improve literal grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Jan 12, 2021
1 parent 28142f7 commit e24868f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ where
fn check_address(address: u8) -> Result<(), Error<E>> {
const LED_ALL_CALL: u8 = 0b111_0000;
// const SW_RESET: u8 = 0b000_0011; this gets absorbed by the high speed mode test
const HIGH_SPEED_MODE: u8 = 0b000_111;
const HIGH_SPEED_MODE: u8 = 0b00_0111;
if address == 0 || address > 0x7F || address == LED_ALL_CALL || address <= HIGH_SPEED_MODE {
Err(Error::InvalidInputData)
} else {
Expand Down

0 comments on commit e24868f

Please sign in to comment.