-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
3a7d6c5
to
3129577
Compare
3129577
to
7f85fdc
Compare
/bot run checks |
1 similar comment
/bot run checks |
BTStatus_t xStatus; | ||
uint8_t LongReadBuffer[ bletests_LONG_WRITE_LEN ]; | ||
|
||
memset( LongReadBuffer, 49, bletests_LONG_WRITE_LEN * sizeof( uint8_t ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of memset you can directly assign to {0} in the declaration above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now we just use the same value { '1', '1', '1', ...} that the long write test sent. It's easier to check the value on the RPi side.
BTGattResponse_t xGattResponse; | ||
BLETESTconfirmCallback_t xConfirmEvent; | ||
BTStatus_t xStatus; | ||
uint8_t LongReadBuffer[ bletests_LONG_WRITE_LEN ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bletests_LONG_WRITE_LEN - Can we have a separate define for the long reads, like bletests_LONG_READ_LEN
Also its better to not allocate long read buffer on stack, as it might over flow the stack buffer. Could be a static global variable instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
/bot run checks |
1 similar comment
/bot run checks |
Description
Checklist:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.