mirror of
https://github.com/google/pebble.git
synced 2025-04-30 15:21:41 -04:00
spelling: occurred
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
0f0c1cca12
commit
3d34684548
10 changed files with 15 additions and 15 deletions
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
//! Error values which may be returned from the smartstrap APIs.
|
//! Error values which may be returned from the smartstrap APIs.
|
||||||
typedef enum {
|
typedef enum {
|
||||||
//! No error occured.
|
//! No error occurred.
|
||||||
SmartstrapResultOk = 0,
|
SmartstrapResultOk = 0,
|
||||||
//! Invalid function arguments were supplied.
|
//! Invalid function arguments were supplied.
|
||||||
SmartstrapResultInvalidArgs,
|
SmartstrapResultInvalidArgs,
|
||||||
|
@ -69,7 +69,7 @@ typedef enum {
|
||||||
SmartstrapResultServiceUnavailable,
|
SmartstrapResultServiceUnavailable,
|
||||||
//! The smartstrap reported that it does not support the requested attribute.
|
//! The smartstrap reported that it does not support the requested attribute.
|
||||||
SmartstrapResultAttributeUnsupported,
|
SmartstrapResultAttributeUnsupported,
|
||||||
//! A time-out occured during the request.
|
//! A time-out occurred during the request.
|
||||||
SmartstrapResultTimeOut,
|
SmartstrapResultTimeOut,
|
||||||
} SmartstrapResult;
|
} SmartstrapResult;
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ void app_smartstrap_set_timeout(uint16_t timeout_ms);
|
||||||
//! @param attribute_id The AttributeId to create the attribute for.
|
//! @param attribute_id The AttributeId to create the attribute for.
|
||||||
//! @param buffer_length The length of the internal buffer which will be used to store the read
|
//! @param buffer_length The length of the internal buffer which will be used to store the read
|
||||||
//! and write requests for this attribute.
|
//! and write requests for this attribute.
|
||||||
//! @returns The newly created SmartstrapAttribute or NULL if an internal error occured or if the
|
//! @returns The newly created SmartstrapAttribute or NULL if an internal error occurred or if the
|
||||||
//! specified length is greater than SMARTSTRAP_ATTRIBUTE_LENGTH_MAXIMUM.
|
//! specified length is greater than SMARTSTRAP_ATTRIBUTE_LENGTH_MAXIMUM.
|
||||||
SmartstrapAttribute *app_smartstrap_attribute_create(SmartstrapServiceId service_id,
|
SmartstrapAttribute *app_smartstrap_attribute_create(SmartstrapServiceId service_id,
|
||||||
SmartstrapAttributeId attribute_id,
|
SmartstrapAttributeId attribute_id,
|
||||||
|
|
|
@ -379,7 +379,7 @@ typedef enum {
|
||||||
|
|
||||||
//! Developer-supplied event handler, called when a health-related event occurs after subscribing
|
//! Developer-supplied event handler, called when a health-related event occurs after subscribing
|
||||||
//! via \ref health_service_events_subscribe();
|
//! via \ref health_service_events_subscribe();
|
||||||
//! @param event The type of health-related event that occured.
|
//! @param event The type of health-related event that occurred.
|
||||||
//! @param context The developer-supplied context pointer.
|
//! @param context The developer-supplied context pointer.
|
||||||
typedef void (*HealthEventHandler)(HealthEventType event, void *context);
|
typedef void (*HealthEventHandler)(HealthEventType event, void *context);
|
||||||
|
|
||||||
|
|
|
@ -214,7 +214,7 @@ typedef void (*MenuLayerDrawSeparatorCallback)(GContext* ctx,
|
||||||
|
|
||||||
//! Function signature for the callback to handle the event that a user hits
|
//! Function signature for the callback to handle the event that a user hits
|
||||||
//! the SELECT button.
|
//! the SELECT button.
|
||||||
//! @param menu_layer The \ref MenuLayer for which the selection event occured
|
//! @param menu_layer The \ref MenuLayer for which the selection event occurred
|
||||||
//! @param cell_index The MenuIndex of the cell that is selected
|
//! @param cell_index The MenuIndex of the cell that is selected
|
||||||
//! @param callback_context The callback context
|
//! @param callback_context The callback context
|
||||||
//! @see \ref menu_layer_set_callbacks()
|
//! @see \ref menu_layer_set_callbacks()
|
||||||
|
@ -225,7 +225,7 @@ typedef void (*MenuLayerSelectCallback)(struct MenuLayer *menu_layer,
|
||||||
|
|
||||||
//! Function signature for the callback to handle a change in the current
|
//! Function signature for the callback to handle a change in the current
|
||||||
//! selected item in the menu.
|
//! selected item in the menu.
|
||||||
//! @param menu_layer The \ref MenuLayer for which the selection event occured
|
//! @param menu_layer The \ref MenuLayer for which the selection event occurred
|
||||||
//! @param new_index The MenuIndex of the new item that is selected now
|
//! @param new_index The MenuIndex of the new item that is selected now
|
||||||
//! @param old_index The MenuIndex of the old item that was selected before
|
//! @param old_index The MenuIndex of the old item that was selected before
|
||||||
//! @param callback_context The callback context
|
//! @param callback_context The callback context
|
||||||
|
@ -239,7 +239,7 @@ typedef void (*MenuLayerSelectionChangedCallback)(struct MenuLayer *menu_layer,
|
||||||
//! Function signature for the callback which allows or changes selection behavior of the menu.
|
//! Function signature for the callback which allows or changes selection behavior of the menu.
|
||||||
//! In order to change the cell that should be selected, modify the passed in new_index.
|
//! In order to change the cell that should be selected, modify the passed in new_index.
|
||||||
//! Preventing the selection from changing, new_index can be assigned the value of old_index.
|
//! Preventing the selection from changing, new_index can be assigned the value of old_index.
|
||||||
//! @param menu_layer The \ref MenuLayer for which the selection event that occured
|
//! @param menu_layer The \ref MenuLayer for which the selection event that occurred
|
||||||
//! @param new_index Pointer to the index that the MenuLayer is going to change selection to.
|
//! @param new_index Pointer to the index that the MenuLayer is going to change selection to.
|
||||||
//! @param old_index The index that is being unselected.
|
//! @param old_index The index that is being unselected.
|
||||||
//! @param callback_context The callback context
|
//! @param callback_context The callback context
|
||||||
|
|
|
@ -50,11 +50,11 @@ NORETURN system_reset(void) {
|
||||||
// if we're in a critical section, interrupt or if the scheduler has been suspended
|
// if we're in a critical section, interrupt or if the scheduler has been suspended
|
||||||
if (!already_failed && !mcu_state_is_isr() && !portIN_CRITICAL() &&
|
if (!already_failed && !mcu_state_is_isr() && !portIN_CRITICAL() &&
|
||||||
(xTaskGetSchedulerState() == taskSCHEDULER_RUNNING)) {
|
(xTaskGetSchedulerState() == taskSCHEDULER_RUNNING)) {
|
||||||
system_reset_prepare(failure_occurred /* skip BT teardown if failure occured */);
|
system_reset_prepare(failure_occurred /* skip BT teardown if failure occurred */);
|
||||||
reboot_reason_set_restarted_safely();
|
reboot_reason_set_restarted_safely();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If a software failure occcured, do a core dump before resetting
|
// If a software failure occurred, do a core dump before resetting
|
||||||
if (failure_occurred) {
|
if (failure_occurred) {
|
||||||
core_dump_reset(false /* don't force overwrite */);
|
core_dump_reset(false /* don't force overwrite */);
|
||||||
}
|
}
|
||||||
|
|
|
@ -404,7 +404,7 @@ void analytics_event_crash(uint8_t crash_code, uint32_t link_register) {
|
||||||
.crash_report.link_register = link_register
|
.crash_report.link_register = link_register
|
||||||
};
|
};
|
||||||
|
|
||||||
ANALYTICS_LOG_DEBUG("Crash occured: Code %"PRIu8" / LR: %"PRIu32,
|
ANALYTICS_LOG_DEBUG("Crash occurred: Code %"PRIu8" / LR: %"PRIu32,
|
||||||
event_blob.crash_report.crash_code, event_blob.crash_report.link_register);
|
event_blob.crash_report.crash_code, event_blob.crash_report.link_register);
|
||||||
|
|
||||||
analytics_logging_log_event(&event_blob);
|
analytics_logging_log_event(&event_blob);
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
//! @param app_attributes ANCS App attributes (namely, the display name)
|
//! @param app_attributes ANCS App attributes (namely, the display name)
|
||||||
//! @param app_metadata The icon and color associated with the app
|
//! @param app_metadata The icon and color associated with the app
|
||||||
//! @param notif_prefs iOS notification prefs for this notification
|
//! @param notif_prefs iOS notification prefs for this notification
|
||||||
//! @param timestamp Time the notification occured
|
//! @param timestamp Time the notification occurred
|
||||||
//! @param properties Additional ANCS properties (category, flags, etc)
|
//! @param properties Additional ANCS properties (category, flags, etc)
|
||||||
//! @return The newly created timeline item
|
//! @return The newly created timeline item
|
||||||
TimelineItem *ancs_item_create_and_populate(ANCSAttribute *notif_attributes[],
|
TimelineItem *ancs_item_create_and_populate(ANCSAttribute *notif_attributes[],
|
||||||
|
|
|
@ -160,7 +160,7 @@ static void prv_stationary_check_launcher_task_cb(void *unused_data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Called every minute to determine whether any motion has occured since the last time
|
//! Called every minute to determine whether any motion has occurred since the last time
|
||||||
//! the call was made. The current position is updated at this time
|
//! the call was made. The current position is updated at this time
|
||||||
static void prv_stationary_check_timer_cb(void *unused_data) {
|
static void prv_stationary_check_timer_cb(void *unused_data) {
|
||||||
//! All stationary events need to be handled by kernel main
|
//! All stationary events need to be handled by kernel main
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include "kernel/event_loop.h"
|
#include "kernel/event_loop.h"
|
||||||
|
|
||||||
//! Set up a timer that will check the position of the watch every minute to see
|
//! Set up a timer that will check the position of the watch every minute to see
|
||||||
//! if any motion has occured
|
//! if any motion has occurred
|
||||||
void stationary_init(void);
|
void stationary_init(void);
|
||||||
|
|
||||||
//! Stationary mode should only be enabled when the user settings allow for it and when
|
//! Stationary mode should only be enabled when the user settings allow for it and when
|
||||||
|
|
|
@ -36,7 +36,7 @@ message Event {
|
||||||
required bytes uuid = 1; /// 16-byte uuid for efficient message size
|
required bytes uuid = 1; /// 16-byte uuid for efficient message size
|
||||||
optional User user = 2; /// can usually be omitted and included in Requests
|
optional User user = 2; /// can usually be omitted and included in Requests
|
||||||
required Type type = 4; /// string types are more sanely extensible, but enum types would be more typo resistant and smaller message size
|
required Type type = 4; /// string types are more sanely extensible, but enum types would be more typo resistant and smaller message size
|
||||||
required uint32 time_utc = 5; /// when the event occured (unix epoch seconds)
|
required uint32 time_utc = 5; /// when the event occurred (unix epoch seconds)
|
||||||
required sint32 utc_to_local = 6; /// time_utc + utc_to_local = time_local. sint32 stores neg number efficiently. need to recast before adding to time_utc, but saves storage
|
required sint32 utc_to_local = 6; /// time_utc + utc_to_local = time_local. sint32 stores neg number efficiently. need to recast before adding to time_utc, but saves storage
|
||||||
optional uint32 created_time_utc = 7; /// events may be created at times other than their occurance
|
optional uint32 created_time_utc = 7; /// events may be created at times other than their occurance
|
||||||
optional uint32 duration = 8; /// in same units as time_utc (sec)
|
optional uint32 duration = 8; /// in same units as time_utc (sec)
|
||||||
|
|
|
@ -220,7 +220,7 @@ _Static_assert(sizeof(PebblePairingServiceConnectivityStatus) <= 20, "Larger tha
|
||||||
|
|
||||||
typedef struct GAPLEConnection GAPLEConnection;
|
typedef struct GAPLEConnection GAPLEConnection;
|
||||||
|
|
||||||
//! Signals to the Pebble GATT service that status change has occured (pairing, encryption, ...),
|
//! Signals to the Pebble GATT service that status change has occurred (pairing, encryption, ...),
|
||||||
//! allowing it to notify any BLE devices that are subscribed to connectivity status updates of the
|
//! allowing it to notify any BLE devices that are subscribed to connectivity status updates of the
|
||||||
//! change.
|
//! change.
|
||||||
//! @param connection The connection for which the status was changed.
|
//! @param connection The connection for which the status was changed.
|
||||||
|
|
Loading…
Add table
Reference in a new issue