attempt to make write-charac & notify handle co-work correctly

This commit is contained in:
weiting2
2020-08-20 14:40:37 +08:00
parent 0155ce6488
commit 327f45985b
2 changed files with 4 additions and 2 deletions
@@ -1651,6 +1651,7 @@ static void SimpleBLECentral_processGATTMsg(gattMsgEvent_t *pMsg)
mem_UART_display("FC Violated: \n\r");
#endif
err_ack[7] = 99;
UART_write(uart_handle, err_ack, 10);
}
else if (pMsg->method == ATT_MTU_UPDATED_EVENT)
@@ -1674,6 +1675,7 @@ static void SimpleBLECentral_processGATTMsg(gattMsgEvent_t *pMsg)
central_handle_notify(att_notify->len, att_notify->pValue);
}
else{
err_ack[7] = 5;
UART_write(uart_handle, err_ack, 10);
}
@@ -6,11 +6,11 @@
#define VERSION_DATE_MONTH 8
#define VERSION_DATE_DAY 20
#define VERSION_DATE_HOUR 14
#define VERSION_DATE_MINUTE 25
#define VERSION_DATE_MINUTE 40
// this is NOT the version hash !!
// it's the last version hash
#define VERSION_HASH 4877e4cd1fe372a1911b7c6aea2780e07de62426
#define VERSION_HASH 0155ce6488032d0b7db4082dc0e6eeb6164c4313
#define VERSION_GIT_BRANCH simple_central_ma_pin
#endif