mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-03 22:15:40 +01:00
RFFC5071: Fix to read value from device when register marked dirty.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user