This commit is contained in:
Lady Ada 2020-02-22 18:20:26 -05:00
parent 9711a24996
commit 6aac18ac66
1 changed files with 2 additions and 0 deletions

View File

@ -273,6 +273,8 @@ uint32_t Adafruit_BusIO_RegisterBits::read(void) {
/*!
* @brief Write 4 bytes of data to the register
* @param data The 4 bytes to write
* @return True on successful write (only really useful for I2C as SPI is
* uncheckable)
*/
bool Adafruit_BusIO_RegisterBits::write(uint32_t data) {
uint32_t val = _register->read();