diff --git a/pureboot/pureboot.cpp b/pureboot/pureboot.cpp index 396c2e0..5288d08 100644 --- a/pureboot/pureboot.cpp +++ b/pureboot/pureboot.cpp @@ -321,8 +321,7 @@ void program_flash(std::uint16_t wire_address, std::uint8_t slot_high) // A page is aligned, so it never crosses 64 KiB: RAMPZ is a per-page // constant and the 16-bit Z's low byte is the whole in-page offset. const std::uint8_t rampz = static_cast(wire_address >> 15); - const std::uint16_t z0 = - static_cast(wire_address << 1) & ~static_cast(page - 1); + const std::uint16_t z0 = static_cast(wire_address << 1) & ~static_cast(page - 1); std::uint16_t z = z0; do { std::uint8_t low = link::rx();