From ab686ad8d41d000e2b6722c86f7b9029c752b344 Mon Sep 17 00:00:00 2001 From: Spence Konde Date: Tue, 22 Mar 2022 23:29:46 -0400 Subject: [PATCH] Fix two silly linting errors. --- megaavr/libraries/EEPROM/README.md | 2 +- megaavr/libraries/SPI/src/SPI.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/megaavr/libraries/EEPROM/README.md b/megaavr/libraries/EEPROM/README.md index 828b8135..c3ce28ec 100644 --- a/megaavr/libraries/EEPROM/README.md +++ b/megaavr/libraries/EEPROM/README.md @@ -98,7 +98,7 @@ This function returns a reference to the `object` passed in. It does not need to ### Subscript operator: `EEPROM[address]` [[*example*]](examples/eeprom_crc/eeprom_crc.ino) This operator allows using the identifier `EEPROM` like an array. -EEPROM cells can be read *and* **_written_** directly using this method. +EEPROM cells can be read *and* **written** directly using this method. This operator returns a reference to the EEPROM cell. diff --git a/megaavr/libraries/SPI/src/SPI.cpp b/megaavr/libraries/SPI/src/SPI.cpp index e49d5fb2..22f4e64c 100644 --- a/megaavr/libraries/SPI/src/SPI.cpp +++ b/megaavr/libraries/SPI/src/SPI.cpp @@ -146,8 +146,9 @@ void SPIClass::begin() { } void SPIClass::init() { - if (initialized) + if (initialized) { return; + } interruptMode = SPI_IMODE_NONE; #ifdef CORE_ATTACH_OLD interruptSave = 0;