Skip to content

Commit 15342d3

Browse files
committed
send correct data size
1 parent acaca6f commit 15342d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/crsf/crsf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ void crsf_get_ChannelData_task(void *arg)
226226
struct os_mbuf *om;
227227

228228
if(notify_state_report_data){
229-
om = ble_hs_mbuf_from_flat(&channelData, sizeof(channelData));
229+
//dann passt die größe vom paket zu den report deskriptor wenn 17 fesst vorprogrammiert ist --> sizeof(channelData) gibt 18
230+
om = ble_hs_mbuf_from_flat(&channelData, 17);
230231
//Deprecated. Should not be used. Use ble_gatts_notify_custom instead.
231232
rc = ble_gattc_notify_custom(conn_handle, report_data_handle, om);
232233

0 commit comments

Comments
 (0)