Skip to content

Commit 9778d93

Browse files
committed
android working
1 parent bfa6abd commit 9778d93

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/ble/gap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ int bleGAPEevent(struct ble_gap_event *event, void *arg) {
102102
.supervision_timeout = 1860/10 //10ms units, laut apple größer als itvl_max * (latency + 1) * 3
103103
};
104104

105-
//ESP_ERROR_CHECK(ble_gap_update_params(event->connect.conn_handle, &connectionParameters));
105+
ESP_ERROR_CHECK(ble_gap_update_params(event->connect.conn_handle, &connectionParameters));
106106
}
107107

108108

components/crsf/crsf.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,10 @@ void crsf_get_ChannelData_task(void *arg)
226226
struct os_mbuf *om;
227227

228228
if(notify_state){
229-
ESP_LOGI("","BLE NOTIFY");
230229
om = ble_hs_mbuf_from_flat(&channelData, sizeof(channelData));
231230
rc = ble_gattc_notify_custom(conn_handle, report_data_handle, om);
232231

233-
assert(rc == 0);
232+
//assert(rc == 0);
234233
}
235234
}
236235
//ESP_LOGI("Channel-Data","%4d %4d %4d %4d %4d %4d %4d %4d %4d %4d %4d %4d %4d %4d %4d %4d", channelData.throttle, channelData.yaw, channelData.pitch, channelData.roll, channelData.aux1, channelData.aux2, channelData.aux3, channelData.aux4, (channelData.buttons & (0x01<<0)), (channelData.buttons & (0x01<<1)), (channelData.buttons & (0x01<<2)), (channelData.buttons & (0x01<<3)), (channelData.buttons & (0x01<<4)), (channelData.buttons & (0x01<<5)), (channelData.buttons & (0x01<<6)), (channelData.buttons & (0x01<<7)));

components/crsf/include/crsf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <stdbool.h>
99

1010
#include "gap.h"
11+
#include "host/ble_gatt.h"
1112

1213
//struct for channel data
1314
typedef struct ChannelDataStruct{

0 commit comments

Comments
 (0)