From 3d346845483ff986508ba79d97b25864ecf4eb60 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:16:46 -0500 Subject: [PATCH] spelling: occurred Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/fw/applib/app_smartstrap.h | 6 +++--- src/fw/applib/health_service.h | 2 +- src/fw/applib/ui/menu_layer.h | 6 +++--- src/fw/kernel/reset.c | 4 ++-- src/fw/services/normal/analytics/analytics_event.c | 2 +- src/fw/services/normal/notifications/ancs/ancs_item.h | 2 +- src/fw/services/normal/stationary.c | 2 +- src/fw/services/normal/stationary.h | 2 +- src/idl/nanopb/event.proto | 2 +- src/include/bluetooth/pebble_pairing_service.h | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/fw/applib/app_smartstrap.h b/src/fw/applib/app_smartstrap.h index 3161c5d9..c8405d1f 100644 --- a/src/fw/applib/app_smartstrap.h +++ b/src/fw/applib/app_smartstrap.h @@ -56,7 +56,7 @@ //! Error values which may be returned from the smartstrap APIs. typedef enum { - //! No error occured. + //! No error occurred. SmartstrapResultOk = 0, //! Invalid function arguments were supplied. SmartstrapResultInvalidArgs, @@ -69,7 +69,7 @@ typedef enum { SmartstrapResultServiceUnavailable, //! The smartstrap reported that it does not support the requested attribute. SmartstrapResultAttributeUnsupported, - //! A time-out occured during the request. + //! A time-out occurred during the request. SmartstrapResultTimeOut, } 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 buffer_length The length of the internal buffer which will be used to store the read //! 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. SmartstrapAttribute *app_smartstrap_attribute_create(SmartstrapServiceId service_id, SmartstrapAttributeId attribute_id, diff --git a/src/fw/applib/health_service.h b/src/fw/applib/health_service.h index d54294c4..d1b91e0c 100644 --- a/src/fw/applib/health_service.h +++ b/src/fw/applib/health_service.h @@ -379,7 +379,7 @@ typedef enum { //! Developer-supplied event handler, called when a health-related event occurs after subscribing //! 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. typedef void (*HealthEventHandler)(HealthEventType event, void *context); diff --git a/src/fw/applib/ui/menu_layer.h b/src/fw/applib/ui/menu_layer.h index 031a382a..41d882a6 100644 --- a/src/fw/applib/ui/menu_layer.h +++ b/src/fw/applib/ui/menu_layer.h @@ -214,7 +214,7 @@ typedef void (*MenuLayerDrawSeparatorCallback)(GContext* ctx, //! Function signature for the callback to handle the event that a user hits //! 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 callback_context The callback context //! @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 //! 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 old_index The MenuIndex of the old item that was selected before //! @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. //! 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. -//! @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 old_index The index that is being unselected. //! @param callback_context The callback context diff --git a/src/fw/kernel/reset.c b/src/fw/kernel/reset.c index 62e10c91..4639d7a8 100644 --- a/src/fw/kernel/reset.c +++ b/src/fw/kernel/reset.c @@ -50,11 +50,11 @@ NORETURN system_reset(void) { // if we're in a critical section, interrupt or if the scheduler has been suspended if (!already_failed && !mcu_state_is_isr() && !portIN_CRITICAL() && (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(); } - // 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) { core_dump_reset(false /* don't force overwrite */); } diff --git a/src/fw/services/normal/analytics/analytics_event.c b/src/fw/services/normal/analytics/analytics_event.c index d5ce38e1..a14fe238 100644 --- a/src/fw/services/normal/analytics/analytics_event.c +++ b/src/fw/services/normal/analytics/analytics_event.c @@ -404,7 +404,7 @@ void analytics_event_crash(uint8_t crash_code, uint32_t 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); analytics_logging_log_event(&event_blob); diff --git a/src/fw/services/normal/notifications/ancs/ancs_item.h b/src/fw/services/normal/notifications/ancs/ancs_item.h index 95b1eef6..fc85eaff 100644 --- a/src/fw/services/normal/notifications/ancs/ancs_item.h +++ b/src/fw/services/normal/notifications/ancs/ancs_item.h @@ -27,7 +27,7 @@ //! @param app_attributes ANCS App attributes (namely, the display name) //! @param app_metadata The icon and color associated with the app //! @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) //! @return The newly created timeline item TimelineItem *ancs_item_create_and_populate(ANCSAttribute *notif_attributes[], diff --git a/src/fw/services/normal/stationary.c b/src/fw/services/normal/stationary.c index 31b4f9f7..4b335bad 100644 --- a/src/fw/services/normal/stationary.c +++ b/src/fw/services/normal/stationary.c @@ -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 static void prv_stationary_check_timer_cb(void *unused_data) { //! All stationary events need to be handled by kernel main diff --git a/src/fw/services/normal/stationary.h b/src/fw/services/normal/stationary.h index 8b8d4240..a15047a2 100644 --- a/src/fw/services/normal/stationary.h +++ b/src/fw/services/normal/stationary.h @@ -21,7 +21,7 @@ #include "kernel/event_loop.h" //! 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); //! Stationary mode should only be enabled when the user settings allow for it and when diff --git a/src/idl/nanopb/event.proto b/src/idl/nanopb/event.proto index 291e311b..08115bad 100644 --- a/src/idl/nanopb/event.proto +++ b/src/idl/nanopb/event.proto @@ -36,7 +36,7 @@ message Event { required bytes uuid = 1; /// 16-byte uuid for efficient message size 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 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 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) diff --git a/src/include/bluetooth/pebble_pairing_service.h b/src/include/bluetooth/pebble_pairing_service.h index c744bac8..f9d9437c 100644 --- a/src/include/bluetooth/pebble_pairing_service.h +++ b/src/include/bluetooth/pebble_pairing_service.h @@ -220,7 +220,7 @@ _Static_assert(sizeof(PebblePairingServiceConnectivityStatus) <= 20, "Larger tha 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 //! change. //! @param connection The connection for which the status was changed.