riscv-rust / e310x-hal

Implementation of the `embedded-hal` traits for E310x microcontrollers
17 stars 18 forks source link

fixed `PeripheralAccess::value()` #26

Closed CobaltCause closed 4 years ago

CobaltCause commented 4 years ago

The lack of & 1 caused using pins other than the highest numbered one as an input to not work correctly due to misinterpreting garbage bits as setting the pin in the high state. &ing with 1 solves this problem by zeroing out bits that should be ignored.

Disasm commented 4 years ago

Oh, indeed, Thank you!

Disasm commented 4 years ago

Published v0.8.3