Radio print function.

pull/1339/head
Pawel Rozanski 2015-08-19 12:44:26 +02:00 committed by Wojciech Gorniak
parent 913b8d8971
commit 4c95e443c8
1 changed files with 10 additions and 0 deletions

View File

@ -72,6 +72,16 @@ uint8_t Buffer[BUFFER_SIZE];
int16_t RssiValue = 0.0;
int8_t SnrValue = 0.0;
void radioRegistersPrint()
{
printf("--REGS--\n\r");
for (int i = REG_OPMODE; i <= REG_PLL; ++i)
{
printf("REG %.2x = %.2x\r\n", i, Radio.Read(i));
}
}
int main()
{
uint8_t i;