From beba579cf82e7e559cfc458fe29235c923614503 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 2 Oct 2024 09:40:21 +0100 Subject: [PATCH] documentation --- src/jswrap_pin.c | 2 +- targets/nrf5x/bluetooth.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jswrap_pin.c b/src/jswrap_pin.c index 8daf7d9786..8215b4abd2 100644 --- a/src/jswrap_pin.c +++ b/src/jswrap_pin.c @@ -139,7 +139,7 @@ void jswrap_pin_write( "generate" : "jswrap_pin_writeAtTime", "params" : [ ["value", "bool", "Whether to set output high (true/1) or low (false/0)"], - ["time", "float", "Time at which to write"] + ["time", "float", "Time at which to write (in seconds)"] ] } Sets the output state of the pin to the parameter given at the specified time. diff --git a/targets/nrf5x/bluetooth.c b/targets/nrf5x/bluetooth.c index 361d5454b5..d9e3107e2b 100644 --- a/targets/nrf5x/bluetooth.c +++ b/targets/nrf5x/bluetooth.c @@ -3622,6 +3622,7 @@ void jsble_central_characteristicDescDiscover(uint16_t central_conn_handle, JsVa range.end_handle = handle_value+1; uint32_t err_code; + // This causes a BLE_GATTC_EVT_DESC_DISC_RSP to be received when we get the response err_code = sd_ble_gattc_descriptors_discover(central_conn_handle, &range); JsVar *errStr = jsble_get_error_string(err_code); if (errStr) {