Closed greymfm closed 7 years ago
BTW: accuracy seem to incease by this fix because otherwise the tuning parameters are not written correctly to the chip :) (UPDATE: please ignore this comment, I think I'm wrong here)
Hi there,
sorry for delay and thanks for your help in debugging!
Although I did not yet have time to verify this extended address issue, your "corrected" code seems to be equal to the one in already in place. Your EXT_ADDR is equal to the currently used WRITE constant.
Did I miss something? ;-) Please clarify and many thanks!
Cheers, Thomas
For extended addresses, regardless of read/write, bit 7 of Octet 2 must be set (page 12 in user manual). In the current code, it's not set for read operations, and so the read fails (PS: try to write and read back an extended address).
Uh, oh! Thx! Will fix it.
readBytes is not setting the extended address bit correctly:
This is the corrected code:
I found it out by verifying the sent data (in writeBytes) by reading back the written data.