mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-09 21:40:23 +00:00
stm32-sx1280: use 32 bytes for read/write buffer test
This commit is contained in:
parent
da16b0c648
commit
ec59e7868b
@ -925,16 +925,16 @@ void ll_radio_on(void){
|
|||||||
// Go back to Frequcency Synthesis Mode, reduces transition time between Rx<->TX
|
// Go back to Frequcency Synthesis Mode, reduces transition time between Rx<->TX
|
||||||
Radio.SetAutoFS(1);
|
Radio.SetAutoFS(1);
|
||||||
|
|
||||||
// quick test
|
// quick test
|
||||||
uint8_t data[] = { 1, 2, 4, 8, 16, 32, 64, 128 };
|
uint8_t data[] = {1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8, 16, 32, 64, 128 };
|
||||||
Radio.WriteBuffer(0, data, sizeof(data));
|
Radio.WriteBuffer(0, data, sizeof(data));
|
||||||
uint8_t check[8];
|
uint8_t check[32];
|
||||||
Radio.ReadBuffer(0, check, sizeof(data));
|
Radio.ReadBuffer(0, check, sizeof(data));
|
||||||
if (memcmp(data, check, sizeof(data)) != 0){
|
if (memcmp(data, check, sizeof(data)) != 0) {
|
||||||
printf_hexdump(data, sizeof(data));
|
printf("GOOD: "); printf_hexdump(data, sizeof(data));
|
||||||
printf_hexdump(check, sizeof(data));
|
printf("BAD: "); printf_hexdump(check, sizeof(data));
|
||||||
btstack_assert(false);
|
btstack_assert(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
ll_state = LL_STATE_STANDBY;
|
ll_state = LL_STATE_STANDBY;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user