Improve AM-fix #160

This commit is contained in:
Krzysiek Egzmont
2023-12-01 02:12:46 +01:00
parent c341570838
commit 5a2086fcd0
4 changed files with 78 additions and 92 deletions

View File

@@ -21,6 +21,13 @@ static inline void LogRegUart(uint16_t reg)
}
static inline void LogPrint()
{
uint16_t rssi = BK4819_GetRSSI();
uint16_t reg7e = BK4819_ReadRegister(0x7E);
char buf[32];
sprintf(buf, "reg7E: %d %2d %6d %2d %d rssi: %d\n", (reg7e >> 15), (reg7e >> 12) & 0b111, (reg7e >> 5) & 0b1111111, (reg7e >> 2) & 0b111, (reg7e >> 0) & 0b11, rssi);
LogUart(buf);
}
#endif