Skip to content

Commit d285ddd

Browse files
authored
Merge pull request #608 from Saqoosha/fix-elrs-uid-display
Fix MSP_GET_BP_STATUS truncating last UID byte in ELRS bind display
2 parents 5aba21c + 82ea8f9 commit d285ddd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ui/page_elrs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static void page_elrs_on_roller(uint8_t key) {
134134
static void elrs_status_timer(struct _lv_timer_t *timer) {
135135
char label[80];
136136
uint8_t status[7] = {0};
137-
uint16_t size = sizeof(status) - 1;
137+
uint16_t size = sizeof(status);
138138

139139
if (!msp_read_resposne(MSP_GET_BP_STATUS, &size, status)) {
140140
msp_send_packet(MSP_GET_BP_STATUS, MSP_PACKET_COMMAND, 0, NULL);

0 commit comments

Comments
 (0)