mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-12 21:17:57 +00:00
Solved the invalid write value on CTS char
This commit is contained in:
committed by
Abhinav Kudnar
parent
611511d3b6
commit
6c739904c7
@@ -105,8 +105,7 @@ ble_svc_cts_chr_write(struct os_mbuf *om, uint16_t min_len,
|
||||
|
||||
int ble_svc_cts_curr_time_validate(struct ble_svc_cts_curr_time curr_time) {
|
||||
if(curr_time.et_256.d_d_t.day_of_week > 7 ||
|
||||
(curr_time.et_256.d_d_t.d_t.year < 1582 &&
|
||||
curr_time.et_256.d_d_t.d_t.year != 0 ) ||
|
||||
(curr_time.et_256.d_d_t.d_t.year < 1582)||
|
||||
curr_time.et_256.d_d_t.d_t.year > 9999 ||
|
||||
curr_time.et_256.d_d_t.d_t.month > 12 ||
|
||||
curr_time.et_256.d_d_t.d_t.day > 31 ||
|
||||
|
||||
Reference in New Issue
Block a user