mirror of
https://github.com/google/pebble.git
synced 2025-04-30 23:31:40 -04:00
spelling: response
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
0a6167953f
commit
c42dfbcdfc
6 changed files with 12 additions and 12 deletions
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
//! @internal
|
//! @internal
|
||||||
//! The number of reports that the circular reports buffer can contain.
|
//! The number of reports that the circular reports buffer can contain.
|
||||||
//! Accomodate for 4 reports with advertisement and scan reponse data:
|
//! Accomodate for 4 reports with advertisement and scan response data:
|
||||||
#define GAP_LE_SCAN_REPORTS_BUFFER_SIZE (4 * (sizeof(GAPLERawAdReport) + \
|
#define GAP_LE_SCAN_REPORTS_BUFFER_SIZE (4 * (sizeof(GAPLERawAdReport) + \
|
||||||
(2 * GAP_LE_AD_REPORT_DATA_MAX_LENGTH)))
|
(2 * GAP_LE_AD_REPORT_DATA_MAX_LENGTH)))
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ static void prv_internal_write_cccd_response_cb(GattClientOpResponseHdr *event)
|
||||||
gatt_client_subscriptions_handle_write_cccd_response(cccd, error);
|
gatt_client_subscriptions_handle_write_cccd_response(cccd, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
static BLEGATTError prv_handle_response(const GattClientOpReadReponse *resp,
|
static BLEGATTError prv_handle_response(const GattClientOpReadResponse *resp,
|
||||||
const GattClientEventContext *data,
|
const GattClientEventContext *data,
|
||||||
uint16_t *gatt_value_length) {
|
uint16_t *gatt_value_length) {
|
||||||
uint16_t val_len = resp->value_length;
|
uint16_t val_len = resp->value_length;
|
||||||
|
@ -154,7 +154,7 @@ void bt_driver_cb_gatt_client_operations_handle_response(GattClientOpResponseHdr
|
||||||
} else {
|
} else {
|
||||||
switch (event->type) {
|
switch (event->type) {
|
||||||
case GattClientOpResponseRead: {
|
case GattClientOpResponseRead: {
|
||||||
const GattClientOpReadReponse *resp = (GattClientOpReadReponse *)event;
|
const GattClientOpReadResponse *resp = (GattClientOpReadResponse *)event;
|
||||||
PBL_ASSERTN(data->subtype == PebbleBLEGATTClientEventTypeCharacteristicRead ||
|
PBL_ASSERTN(data->subtype == PebbleBLEGATTClientEventTypeCharacteristicRead ||
|
||||||
data->subtype == PebbleBLEGATTClientEventTypeDescriptorRead);
|
data->subtype == PebbleBLEGATTClientEventTypeDescriptorRead);
|
||||||
gatt_err_code = prv_handle_response(resp, data, &gatt_value_length);
|
gatt_err_code = prv_handle_response(resp, data, &gatt_value_length);
|
||||||
|
|
|
@ -45,8 +45,8 @@ typedef enum {
|
||||||
AnalyticsEvent_AppLaunch,
|
AnalyticsEvent_AppLaunch,
|
||||||
AnalyticsEvent_PinOpen,
|
AnalyticsEvent_PinOpen,
|
||||||
AnalyticsEvent_PinAction,
|
AnalyticsEvent_PinAction,
|
||||||
AnalyticsEvent_CannedReponseSent,
|
AnalyticsEvent_CannedResponseSent,
|
||||||
AnalyticsEvent_CannedReponseFailed,
|
AnalyticsEvent_CannedResponseFailed,
|
||||||
AnalyticsEvent_VoiceTranscriptionAccepted,
|
AnalyticsEvent_VoiceTranscriptionAccepted,
|
||||||
AnalyticsEvent_VoiceTranscriptionRejected,
|
AnalyticsEvent_VoiceTranscriptionRejected,
|
||||||
AnalyticsEvent_PinAppLaunch,
|
AnalyticsEvent_PinAppLaunch,
|
||||||
|
|
|
@ -217,8 +217,8 @@ void analytics_event_canned_response(const char *response, bool successfully_sen
|
||||||
// Format the event specific info in the blob. The analytics_logging_log_event() method will fill
|
// Format the event specific info in the blob. The analytics_logging_log_event() method will fill
|
||||||
// in the common fields
|
// in the common fields
|
||||||
AnalyticsEventBlob event_blob = {
|
AnalyticsEventBlob event_blob = {
|
||||||
.event = successfully_sent ? AnalyticsEvent_CannedReponseSent
|
.event = successfully_sent ? AnalyticsEvent_CannedResponseSent
|
||||||
: AnalyticsEvent_CannedReponseFailed,
|
: AnalyticsEvent_CannedResponseFailed,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!response) {
|
if (!response) {
|
||||||
|
|
|
@ -160,7 +160,7 @@ static void prv_cleanup(AppFetchResult result) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//! System task callback triggered by app_fetch_put_bytes_event_handler() when we are receiving
|
//! System task callback triggered by app_fetch_put_bytes_event_handler() when we are receiving
|
||||||
//! put_bytes messages in reponse to a fetch request to the phone.
|
//! put_bytes messages in response to a fetch request to the phone.
|
||||||
void prv_put_bytes_event_system_task_cb(void *data) {
|
void prv_put_bytes_event_system_task_cb(void *data) {
|
||||||
PebblePutBytesEvent *pb_event = (PebblePutBytesEvent *)data;
|
PebblePutBytesEvent *pb_event = (PebblePutBytesEvent *)data;
|
||||||
|
|
||||||
|
|
|
@ -96,15 +96,15 @@ typedef struct GattClientOpResponseHdr {
|
||||||
void *context;
|
void *context;
|
||||||
} GattClientOpResponseHdr;
|
} GattClientOpResponseHdr;
|
||||||
|
|
||||||
typedef struct GattClientOpReadReponse {
|
typedef struct GattClientOpReadResponse {
|
||||||
GattClientOpResponseHdr hdr;
|
GattClientOpResponseHdr hdr;
|
||||||
uint16_t value_length;
|
uint16_t value_length;
|
||||||
uint8_t *value;
|
uint8_t *value;
|
||||||
} GattClientOpReadReponse;
|
} GattClientOpReadResponse;
|
||||||
|
|
||||||
typedef struct GattClientOpWriteReponse {
|
typedef struct GattClientOpWriteResponse {
|
||||||
GattClientOpResponseHdr hdr;
|
GattClientOpResponseHdr hdr;
|
||||||
} GattClientOpWriteReponse;
|
} GattClientOpWriteResponse;
|
||||||
|
|
||||||
// -- Gatt Data Structures
|
// -- Gatt Data Structures
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue