Skip to content

Commit 02796c3

Browse files
committed
fix length typos
1 parent 0658502 commit 02796c3

20 files changed

Lines changed: 23 additions & 23 deletions

applications/examples/example_event_loop/example_event_loop_mutex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ typedef struct {
2626
uint8_t worker_result;
2727
} EventLoopMutexApp;
2828

29-
// This funciton is being run in a separate thread to simulate lenghty blocking operations
29+
// This funciton is being run in a separate thread to simulate lengthy blocking operations
3030
static int32_t event_loop_mutex_app_worker_thread(void* context) {
3131
furi_assert(context);
3232
EventLoopMutexApp* app = context;

applications/main/subghz/scenes/subghz_scene_signal_settings.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void subghz_scene_signal_settings_variable_item_list_enter_callback(void* contex
6767

6868
// when we click OK on "Edit counter" item
6969
if(index == 1) {
70-
furi_string_cat_printf(byte_input_text, "%i", subghz_block_generic_global.cnt_lenght_bit);
70+
furi_string_cat_printf(byte_input_text, "%i", subghz_block_generic_global.cnt_length_bit);
7171
furi_string_cat_str(byte_input_text, "-bits counter in HEX");
7272

7373
// Setup byte_input view
@@ -151,7 +151,7 @@ void subghz_scene_signal_settings_on_enter(void* context) {
151151

152152
// Check is there byte_count more than 2 hex bytes long or not
153153
// To show hex value we must correct revert bytes for ByteInput view with __bswapХХ
154-
if(subghz_block_generic_global.cnt_lenght_bit > 16) {
154+
if(subghz_block_generic_global.cnt_length_bit > 16) {
155155
counter32 = subghz_block_generic_global.current_cnt;
156156
furi_string_printf(tmp_text, "%lX", counter32);
157157
counter32 = __bswap32(counter32);

lib/mjs/mjs_exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ MJS_PRIVATE mjs_err_t mjs_execute(struct mjs* mjs, size_t off, mjs_val_t* res) {
10631063

10641064
mjs_gen_stack_trace(mjs, bp.start_idx + i - 1 /* undo the i++ */);
10651065

1066-
/* restore stack lenghts */
1066+
/* restore stack lengths */
10671067
mjs->stack.len = stack_len;
10681068
mjs->call_stack.len = call_stack_len;
10691069
mjs->arg_stack.len = arg_stack_len;

lib/subghz/blocks/generic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ void subghz_block_generic_global_counter_override_set(uint32_t counter) {
1717

1818
bool subghz_block_generic_global_counter_override_get(uint32_t* counter) {
1919
// if override flag was enabled then return succes TRUE and return overrided counter, else return success = FALSE
20-
// we cut counter bit lenght to available protocol bits lenght by the logical AND function
20+
// we cut counter bit length to available protocol bits length by the logical AND function
2121
if(subghz_block_generic_global.cnt_need_override) {
2222
*counter = subghz_block_generic_global.new_cnt &
23-
((0xFFFFFFFF >> (32 - subghz_block_generic_global.cnt_lenght_bit)));
23+
((0xFFFFFFFF >> (32 - subghz_block_generic_global.cnt_length_bit)));
2424
subghz_block_generic_global.cnt_need_override = false;
2525
return true;
2626
} else {

lib/subghz/blocks/generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct SubGhzBlockGenericGlobal {
3333
uint32_t current_cnt; // global counter value;
3434
uint32_t new_cnt; // global counter value;
3535
bool cnt_need_override; // flag for protocols to override signals counter inside of protocols
36-
uint8_t cnt_lenght_bit; // counter lenght in bytes (used in counter editor giu)
36+
uint8_t cnt_length_bit; // counter length in bytes (used in counter editor giu)
3737
bool cnt_is_available; // is there counter available for protocol (used in counter editor giu)
3838
};
3939

lib/subghz/protocols/alutech_at_4n.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ void subghz_protocol_decoder_alutech_at_4n_get_string(void* context, FuriString*
877877

878878
// push protocol data to global variable
879879
subghz_block_generic_global.cnt_is_available = true;
880-
subghz_block_generic_global.cnt_lenght_bit = 16;
880+
subghz_block_generic_global.cnt_length_bit = 16;
881881
subghz_block_generic_global.current_cnt = instance->generic.cnt;
882882
//
883883

lib/subghz/protocols/came_atomo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ void subghz_protocol_decoder_came_atomo_get_string(void* context, FuriString* ou
827827

828828
// push protocol data to global variable
829829
subghz_block_generic_global.cnt_is_available = true;
830-
subghz_block_generic_global.cnt_lenght_bit = 16;
830+
subghz_block_generic_global.cnt_length_bit = 16;
831831
subghz_block_generic_global.current_cnt = instance->generic.cnt;
832832
//
833833

lib/subghz/protocols/faac_slh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ void subghz_protocol_decoder_faac_slh_get_string(void* context, FuriString* outp
754754
} else {
755755
// push protocol data to global variable
756756
subghz_block_generic_global.cnt_is_available = true;
757-
subghz_block_generic_global.cnt_lenght_bit = 20;
757+
subghz_block_generic_global.cnt_length_bit = 20;
758758
subghz_block_generic_global.current_cnt = instance->generic.cnt;
759759
//
760760

lib/subghz/protocols/hay21.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ void subghz_protocol_decoder_hay21_get_string(void* context, FuriString* output)
465465

466466
// push protocol data to global variable
467467
subghz_block_generic_global.cnt_is_available = true;
468-
subghz_block_generic_global.cnt_lenght_bit = 8;
468+
subghz_block_generic_global.cnt_length_bit = 8;
469469
subghz_block_generic_global.current_cnt = instance->generic.cnt;
470470

471471
furi_string_cat_printf(

lib/subghz/protocols/keeloq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ void subghz_protocol_decoder_keeloq_get_string(void* context, FuriString* output
14361436

14371437
if(strcmp(instance->manufacture_name, "BFT") == 0) {
14381438
subghz_block_generic_global.cnt_is_available = true;
1439-
subghz_block_generic_global.cnt_lenght_bit = 16;
1439+
subghz_block_generic_global.cnt_length_bit = 16;
14401440
subghz_block_generic_global.current_cnt = instance->generic.cnt;
14411441
furi_string_cat_printf(
14421442
output,
@@ -1474,7 +1474,7 @@ void subghz_protocol_decoder_keeloq_get_string(void* context, FuriString* output
14741474
instance->manufacture_name);
14751475
} else {
14761476
subghz_block_generic_global.cnt_is_available = true;
1477-
subghz_block_generic_global.cnt_lenght_bit = 16;
1477+
subghz_block_generic_global.cnt_length_bit = 16;
14781478
subghz_block_generic_global.current_cnt = instance->generic.cnt;
14791479
furi_string_cat_printf(
14801480
output,

0 commit comments

Comments
 (0)