diff --git a/src/fw/applib/app_message/app_message.c b/src/fw/applib/app_message/app_message.c index 8f761666..bcd2af97 100644 --- a/src/fw/applib/app_message/app_message.c +++ b/src/fw/applib/app_message/app_message.c @@ -204,7 +204,7 @@ AppMessageResult app_message_open(const uint32_t size_inbound, const uint32_t si void app_message_close(void) { AppMessageCtx *app_message_ctx = app_state_get_app_message_ctx(); - // TODO PBL-1634: handle the the return status when this function returns status. + // TODO PBL-1634: handle the return status when this function returns status. // For now, continue to ignore failure. app_message_outbox_close(&app_message_ctx->outbox); app_message_inbox_close(&app_message_ctx->inbox); diff --git a/src/fw/applib/rockyjs/api/rocky_api_memory.c b/src/fw/applib/rockyjs/api/rocky_api_memory.c index 5e0cf55d..d280f513 100644 --- a/src/fw/applib/rockyjs/api/rocky_api_memory.c +++ b/src/fw/applib/rockyjs/api/rocky_api_memory.c @@ -58,7 +58,7 @@ static bool prv_is_headroom_allocated(const RockyMemoryAPIContext *ctx) { } static void prv_allocate_headroom_or_die(RockyMemoryAPIContext *ctx) { - // It's highly likely that while executing a the handler for the 'memorypressure' event, + // It's highly likely that while executing the handler for the 'memorypressure' event, // new objects have been created on the heap. Therefore, it's unlikely we'll be able to reclaim // the desired headroom immediately after returning from the handler. Try to grab as much as we // can and resize it later on, see prv_resize_headroom_if_needed(). diff --git a/src/fw/applib/ui/click_internal.h b/src/fw/applib/ui/click_internal.h index 9bd79f54..811e3e53 100644 --- a/src/fw/applib/ui/click_internal.h +++ b/src/fw/applib/ui/click_internal.h @@ -41,7 +41,7 @@ template to the app's ClickRecognizers.

-Whenever a the head of the window stack changes, the OS is responsible +Whenever the head of the window stack changes, the OS is responsible for ensuring that all of its registered click recognizers are reset and reconfigured using the new visible window's ClickConfigProvider. This happens in the window_stack_private_push & diff --git a/src/fw/applib/ui/scroll_layer.h b/src/fw/applib/ui/scroll_layer.h index 65a48bea..e596a521 100644 --- a/src/fw/applib/ui/scroll_layer.h +++ b/src/fw/applib/ui/scroll_layer.h @@ -76,7 +76,7 @@ typedef struct ScrollLayerCallbacks { //! scrolling behavior. ClickConfigProvider click_config_provider; - //! Called every time the the content offset changes. During a scrolling + //! Called every time the content offset changes. During a scrolling //! animation, it will be called for each intermediary offset as well ScrollLayerCallback content_offset_changed_handler; diff --git a/src/fw/applib/ui/selection_layer.c b/src/fw/applib/ui/selection_layer.c index 9fce048c..b6f35a57 100644 --- a/src/fw/applib/ui/selection_layer.c +++ b/src/fw/applib/ui/selection_layer.c @@ -228,7 +228,7 @@ static void prv_draw_slider_slide(SelectionLayer *selection_layer, GContext *ctx // It then morphs to the size of the next cell + padding causing the illusion that the selector // overshoot it's mark (it will settle back to the correct size in a different animation). - // This means the the width change is the width difference between the two cells plus padding + // This means the width change is the width difference between the two cells plus padding int total_cell_width_change = next_cell_width - cur_cell_width + selection_layer->cell_padding; // The current width change depends on how far we are through the animation @@ -341,7 +341,7 @@ static void prv_draw_selection_layer(SelectionLayer *selection_layer, GContext * /////////////////////////////////////////////////////////////////////////////////////////////////// //! Increment / Decrement Animation -//! This animation causes a the active cell to "bump" when the user presses the up button. +//! This animation causes the active cell to "bump" when the user presses the up button. //! This animation has two parts: //! 1) The "text to cell edge" //! 2) The "background settle" diff --git a/src/fw/applib/ui/selection_layer.h b/src/fw/applib/ui/selection_layer.h index 90e4a77e..f20c1d82 100644 --- a/src/fw/applib/ui/selection_layer.h +++ b/src/fw/applib/ui/selection_layer.h @@ -48,7 +48,7 @@ typedef struct SelectionLayer { unsigned cell_padding; unsigned selected_cell_idx; - // If is_active = false the the selected cell will become invalid, and any clicks will be ignored + // If is_active = false the selected cell will become invalid, and any clicks will be ignored bool is_active; GFont font; diff --git a/src/fw/apps/core_apps/spinner_ui_window.c b/src/fw/apps/core_apps/spinner_ui_window.c index dc979520..42c63bb5 100644 --- a/src/fw/apps/core_apps/spinner_ui_window.c +++ b/src/fw/apps/core_apps/spinner_ui_window.c @@ -51,7 +51,7 @@ typedef struct { // There is a slight delay (lag) between the animation stopping and starting it again. To minimize // this, make the animation contain multiple loops (360 degree rotations) instead of 1. -// This means that the the lag occurs once less frequently and is less noticable +// This means that the lag occurs once less frequently and is less noticable #define LOOPS_PER_ANIMATION 10 #define LOOP_DURATION_MS 1500 diff --git a/src/fw/comm/ble/gatt_client_operations.h b/src/fw/comm/ble/gatt_client_operations.h index 14585d72..6d2cb11f 100644 --- a/src/fw/comm/ble/gatt_client_operations.h +++ b/src/fw/comm/ble/gatt_client_operations.h @@ -17,7 +17,7 @@ #pragma once //! @file This file contains adapter code between Bluetopia's GATT APIs and -//! Pebble's GATT/API code. The functions in this file take the the internal +//! Pebble's GATT/API code. The functions in this file take the internal //! reference types BLECharacteristic and BLEDescriptor to perform operations //! upon those remote resources. The implementation uses the functions //! gatt_client_characteristic_get_handle_and_connection_id and diff --git a/src/fw/services/common/comm_session/session.h b/src/fw/services/common/comm_session/session.h index 52fd0e36..c54ac057 100644 --- a/src/fw/services/common/comm_session/session.h +++ b/src/fw/services/common/comm_session/session.h @@ -75,7 +75,7 @@ CommSessionCapability comm_session_get_capabilities(CommSession *session); //! @note It is possible that the session becomes disconnected at any point in time. CommSession *comm_session_get_system_session(void); -//! @return a reference to the the third party app communication session for the *currently running* +//! @return a reference to the third party app communication session for the *currently running* //! watch app, or NULL if the session does not exist (is not connected). //! @note It is possible that the session becomes disconnected at any point in time. CommSession *comm_session_get_current_app_session(void); diff --git a/src/fw/services/common/ecompass_correction.c b/src/fw/services/common/ecompass_correction.c index 88f5e79a..fac9e4dd 100644 --- a/src/fw/services/common/ecompass_correction.c +++ b/src/fw/services/common/ecompass_correction.c @@ -192,7 +192,7 @@ cleanup: // Conceptually, it makes sense that the farther points are from one another (> // t), the less that errors due to noise, fixed point mathematics, & motion // render bad solutions. (empirically, this seems to be the behavior as -// well). However, the greater the the threshold, the more orientations one +// well). However, the greater the threshold, the more orientations one // must put their watch through in order to get solution sets // // For now, select a distance metric that should work out of the box for a diff --git a/src/fw/shell/normal/prefs.c b/src/fw/shell/normal/prefs.c index 3ecd4062..07a48800 100644 --- a/src/fw/shell/normal/prefs.c +++ b/src/fw/shell/normal/prefs.c @@ -187,7 +187,7 @@ static uint16_t s_timeline_peek_before_time_m = // If changing of the setting requires more than just setting a global, this handler is the // place to perform those other actions. // -// If the the handler gets passed a invalid new value, set its s_* global to a default value, +// If the handler gets passed a invalid new value, set its s_* global to a default value, // and return false. This will trigger a rewrite of the s_* global to the backing file. // // Each of these functions MUST be named using the following pattern because they are called diff --git a/src/libutil/includes/util/circular_buffer.h b/src/libutil/includes/util/circular_buffer.h index 44f1f662..06d26d5a 100644 --- a/src/libutil/includes/util/circular_buffer.h +++ b/src/libutil/includes/util/circular_buffer.h @@ -51,7 +51,7 @@ bool circular_buffer_write(CircularBuffer* buffer, const void* data, uint16_t le //! @note After the client is done writing data, it _must_ call circular_buffer_write_finish() //! so that the CircularBuffer can update the length of the data it contains and update its internal //! bookkeeping -//! @param[out] data_out Pointer to storage for the pointer that is set the the start of the +//! @param[out] data_out Pointer to storage for the pointer that is set the start of the //! writable area when the function returns, or NULL if there is no space available. //! @return The maximum number of bytes that can be written starting at the returned the pointer. //! Zero is returned when there is no space available. diff --git a/tests/fw/services/activity/test_activity.c b/tests/fw/services/activity/test_activity.c index 3ec83e9e..c1b86d86 100644 --- a/tests/fw/services/activity/test_activity.c +++ b/tests/fw/services/activity/test_activity.c @@ -1566,7 +1566,7 @@ void test_activity__sleep_history(void) { prv_feed_canned_accel_data(30 * SECONDS_PER_MINUTE, 20, ActivitySleepStateAwake); // Another 2 hour sleep session starting at 9pm. This will leave us at 11pm. Since this - // session ends after the the cutoff, it should be registered for the next day + // session ends after the cutoff, it should be registered for the next day prv_feed_canned_accel_data(120 * SECONDS_PER_MINUTE, 0, ActivitySleepStateLightSleep); // Awake for 2 hours which puts us at 1am diff --git a/tools/generate_native_sdk/README.md b/tools/generate_native_sdk/README.md index a902cea6..4ece9deb 100644 --- a/tools/generate_native_sdk/README.md +++ b/tools/generate_native_sdk/README.md @@ -75,6 +75,6 @@ Each exported symbol in the `exports` table is formatted as follows: When adding new functions, make sure to bump up the `revision` field, and use that value as the new functions' `addedRevision` field. This guarantees that new versions of TintinOS are backwards compatible when compiled against older `libpebble.a`. Seriously, ***make sure to do this***!!. ## Bugs -+ The script doesn't check the the resulting `pebble.h` file will compile, that is left as an exercise to the reader. ++ The script doesn't check the resulting `pebble.h` file will compile, that is left as an exercise to the reader. + The script's error reporting is a little funky/unfriendly in places + The script does not do any checking of the function revision numbers, beyond a simple check that the file's revision is not lower than any function's.