diff --git a/.github/bors.toml b/.github/bors.toml index 255caf4a7..cd9fa23ed 100644 --- a/.github/bors.toml +++ b/.github/bors.toml @@ -6,5 +6,7 @@ status = [ "ci-linux (stable, thumbv6m-none-eabi)", "ci-linux (stable, thumbv7m-none-eabi)", "ci-linux (1.35.0, x86_64-unknown-linux-gnu)", + "ci-linux-test (stable)", + "ci-linux-test (1.36.0, x86_64-unknown-linux-gnu)", "fmt", ] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d738ddccc..7f10361ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ env: RUSTFLAGS: '--deny warnings' jobs: - ci-linux: + ci-linux-test: runs-on: ubuntu-latest strategy: matrix: diff --git a/src/lib.rs b/src/lib.rs index 5c68b41f2..ddf5b6564 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -155,7 +155,7 @@ //! //! fn read(&mut self) -> nb::Result { //! // read the status register -//! let isr = self.usart.isr.read(); +//! let isr = self.usart.sr.read(); //! //! if isr.ore().bit_is_set() { //! // Error: Buffer overrun @@ -164,7 +164,7 @@ //! // omitted: checks for other errors //! else if isr.rxne().bit_is_set() { //! // Data available: read the data register -//! Ok(self.usart.rdr.read().bits() as u8) +//! Ok(self.usart.dr.read().bits() as u8) //! } else { //! // No data available yet //! Err(nb::Error::WouldBlock)