RFFC5071: Fix to read value from device when register marked dirty.

This commit is contained in:
Jared Boone
2014-11-04 12:48:42 -08:00
parent bb9df8a12a
commit c5d52b6537

View File

@ -336,7 +336,7 @@ uint16_t rffc5071_reg_read(uint8_t r)
/* Discard uncommited write when reading. This shouldn't
* happen, and probably has not been tested. */
if ((rffc5071_regs_dirty >> r) & 0x1) {
rffc5071_spi_read(r);
rffc5071_regs[r] = rffc5071_spi_read(r);
};
return rffc5071_regs[r];
}