Skip to content

Commit 2dc4331

Browse files
author
David Lee
committed
Fix for compile errors under 0.99.1
1 parent be7ffc0 commit 2dc4331

9 files changed

+24
-24
lines changed

helpers/meal_pager_storage.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,26 +223,26 @@ void meal_pager_set_max_values(void* context) {
223223
}
224224
if(app->first_station > app->max_station) {
225225
app->first_station = app->max_station;
226-
snprintf(app->text_store[0], 5, "%lu", app->first_station);
226+
snprintf(app->text_store[0], 20, "%lu", app->first_station);
227227
}
228228
if(app->last_station > app->max_station) {
229229
app->last_station = app->max_station;
230-
snprintf(app->text_store[1], 5, "%lu", app->last_station);
230+
snprintf(app->text_store[1], 20, "%lu", app->last_station);
231231
}
232232
if(app->last_station < app->first_station) {
233233
app->last_station = app->first_station;
234-
snprintf(app->text_store[1], 5, "%lu", app->last_station);
234+
snprintf(app->text_store[1], 20, "%lu", app->last_station);
235235
}
236236
if(app->first_pager > app->max_pager) {
237237
app->first_pager = app->max_pager;
238-
snprintf(app->text_store[2], 4, "%lu", app->first_pager);
238+
snprintf(app->text_store[2], 20, "%lu", app->first_pager);
239239
}
240240
if(app->last_pager > app->max_pager) {
241241
app->last_pager = app->max_pager;
242-
snprintf(app->text_store[3], 4, "%lu", app->last_pager);
242+
snprintf(app->text_store[3], 20, "%lu", app->last_pager);
243243
}
244244
if(app->last_pager < app->first_pager) {
245245
app->last_pager = app->first_pager;
246-
snprintf(app->text_store[3], 4, "%lu", app->last_pager);
246+
snprintf(app->text_store[3], 20, "%lu", app->last_pager);
247247
}
248248
}

helpers/retekess/meal_pager_retekess_t119.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static void meal_pager_retekess_t119_generate_pager(
6767
//FURI_LOG_D(TAG, "Manchester: %s", manchester);
6868
char* rawSignal = genRawDataT119(200, 600, manchester);
6969
//FURI_LOG_D(TAG, "RAW_Data: %s", rawSignal);
70-
for(u_int32_t i = 1; app->repeats >= i; i++) {
70+
for(uint32_t i = 1; app->repeats >= i; i++) {
7171
flipper_format_write_string_cstr(ff, "RAW_Data", rawSignal);
7272
}
7373
//flipper_format_write_string_cstr(ff, "RAW_Data", rawSignal);
@@ -90,7 +90,7 @@ static void
9090
uint32ToBinaray(station, stationId, 13);
9191
reverse(stationId);
9292
meal_pager_transmit_model_set_station(app->meal_pager_transmit, app->current_station);
93-
for(u_int32_t i = app->current_pager; i <= app->last_pager; i++) {
93+
for(uint32_t i = app->current_pager; i <= app->last_pager; i++) {
9494
meal_pager_retekess_t119_generate_pager(app, stationId, i, ff);
9595
//furi_thread_flags_wait(0, FuriFlagWaitAny, 1);
9696
if(app->stop_transmit) {
@@ -117,7 +117,7 @@ bool meal_pager_retekess_t119_generate_all(void* context) {
117117
return success;
118118
}
119119

120-
for(u_int32_t i = app->current_station; i <= app->last_station; i++) {
120+
for(uint32_t i = app->current_station; i <= app->last_station; i++) {
121121
meal_pager_retekess_t119_generate_station(app, i, ff);
122122
//furi_thread_flags_wait(0, FuriFlagWaitAny, 100);
123123
if(app->stop_transmit) {

helpers/retekess/meal_pager_retekess_td157.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void meal_pager_retekess_td157_generate_pager(
5555
customConcat(fullId, actionId);
5656
char* manchester = encManchester(fullId, 0);
5757
char* rawSignal = genRawDataTD157(200, 600, manchester);
58-
for(u_int32_t i = 1; app->repeats >= i; i++) {
58+
for(uint32_t i = 1; app->repeats >= i; i++) {
5959
flipper_format_write_string_cstr(ff, "RAW_Data", rawSignal);
6060
}
6161
free(manchester);
@@ -77,7 +77,7 @@ static void
7777
uint32ToBinaray(station, stationId, 10);
7878
//reverse(stationId);
7979
meal_pager_transmit_model_set_station(app->meal_pager_transmit, app->current_station);
80-
for(u_int32_t i = app->current_pager; i <= app->last_pager; i++) {
80+
for(uint32_t i = app->current_pager; i <= app->last_pager; i++) {
8181
meal_pager_retekess_td157_generate_pager(app, stationId, i, ff);
8282
if(app->stop_transmit) {
8383
break;
@@ -103,7 +103,7 @@ bool meal_pager_retekess_td157_generate_all(void* context) {
103103
return success;
104104
}
105105

106-
for(u_int32_t i = app->current_station; i <= app->last_station; i++) {
106+
for(uint32_t i = app->current_station; i <= app->last_station; i++) {
107107
meal_pager_retekess_td157_generate_station(app, i, ff);
108108
if(app->stop_transmit) {
109109
break;

helpers/retekess/meal_pager_retekess_td165.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void meal_pager_retekess_td165_generate_pager(
5757
customConcat(fullId, actionId);
5858
char* manchester = encManchester(fullId, 0);
5959
char* rawSignal = genRawDataTD165(200, 600, manchester);
60-
for(u_int32_t i = 1; app->repeats >= i; i++) {
60+
for(uint32_t i = 1; app->repeats >= i; i++) {
6161
flipper_format_write_string_cstr(ff, "RAW_Data", rawSignal);
6262
}
6363
free(manchester);
@@ -79,7 +79,7 @@ static void
7979
uint32ToBinaray(station, stationId, 13);
8080
reverse(stationId);
8181
meal_pager_transmit_model_set_station(app->meal_pager_transmit, app->current_station);
82-
for(u_int32_t i = app->current_pager; i <= app->last_pager; i++) {
82+
for(uint32_t i = app->current_pager; i <= app->last_pager; i++) {
8383
meal_pager_retekess_td165_generate_pager(app, stationId, i, ff);
8484
if(app->stop_transmit) {
8585
break;
@@ -105,7 +105,7 @@ bool meal_pager_retekess_td165_generate_all(void* context) {
105105
return success;
106106
}
107107

108-
for(u_int32_t i = app->current_station; i <= app->last_station; i++) {
108+
for(uint32_t i = app->current_station; i <= app->last_station; i++) {
109109
meal_pager_retekess_td165_generate_station(app, i, ff);
110110
if(app->stop_transmit) {
111111
break;

helpers/retekess/meal_pager_retekess_td174.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void meal_pager_retekess_td174_generate_pager(
6060
customConcat(fullId, pagerId);
6161
char* manchester = encManchester(fullId, 0);
6262
char* rawSignal = genRawDataTd174(300, 900, manchester);
63-
for(u_int32_t i = 1; app->repeats >= i; i++) {
63+
for(uint32_t i = 1; app->repeats >= i; i++) {
6464
flipper_format_write_string_cstr(ff, "RAW_Data", rawSignal);
6565
}
6666
free(manchester);
@@ -82,7 +82,7 @@ static void
8282
uint32ToBinaray(station, stationId, 13);
8383
reverse(stationId);
8484
meal_pager_transmit_model_set_station(app->meal_pager_transmit, app->current_station);
85-
for(u_int32_t i = app->current_pager; i <= app->last_pager; i++) {
85+
for(uint32_t i = app->current_pager; i <= app->last_pager; i++) {
8686
meal_pager_retekess_td174_generate_pager(app, stationId, i, ff);
8787
if(app->stop_transmit) {
8888
break;
@@ -108,7 +108,7 @@ bool meal_pager_retekess_td174_generate_all(void* context) {
108108
return success;
109109
}
110110

111-
for(u_int32_t i = app->current_station; i <= app->last_station; i++) {
111+
for(uint32_t i = app->current_station; i <= app->last_station; i++) {
112112
meal_pager_retekess_td174_generate_station(app, i, ff);
113113
//furi_thread_flags_wait(0, FuriFlagWaitAny, 100);
114114
if(app->stop_transmit) {

scenes/meal_pager_scene_set_first_pager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bool meal_pager_scene_set_first_pager_on_event(void* context, SceneManagerEvent
4343
app->first_pager = atoi(app->text_store[2]);
4444
if(app->first_pager > app->max_pager) {
4545
app->first_pager = app->max_pager;
46-
snprintf(app->text_store[2], 4, "%lu", app->first_pager);
46+
snprintf(app->text_store[2], 20, "%lu", app->first_pager);
4747
}
4848
app->first_pager_char = app->text_store[2];
4949
scene_manager_previous_scene(app->scene_manager);

scenes/meal_pager_scene_set_first_station.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bool meal_pager_scene_set_first_station_on_event(void* context, SceneManagerEven
4343
app->first_station = atoi(app->text_store[0]);
4444
if(app->first_station > app->max_station) {
4545
app->first_station = app->max_station;
46-
snprintf(app->text_store[0], 5, "%lu", app->first_station);
46+
snprintf(app->text_store[0], 20, "%lu", app->first_station);
4747
}
4848
app->first_station_char = app->text_store[0];
4949
scene_manager_previous_scene(app->scene_manager);

scenes/meal_pager_scene_set_last_pager.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ bool meal_pager_scene_set_last_pager_on_event(void* context, SceneManagerEvent e
4343
app->last_pager = atoi(app->text_store[3]);
4444
if(app->last_pager > app->max_pager) {
4545
app->last_pager = app->max_pager;
46-
snprintf(app->text_store[3], 4, "%lu", app->last_pager);
46+
snprintf(app->text_store[3], 20, "%lu", app->last_pager);
4747
}
4848
if(app->last_pager < app->first_pager) {
4949
app->last_pager = app->first_pager;
50-
snprintf(app->text_store[3], 4, "%lu", app->last_pager);
50+
snprintf(app->text_store[3], 20, "%lu", app->last_pager);
5151
}
5252
app->last_pager_char = app->text_store[3];
5353
scene_manager_previous_scene(app->scene_manager);

scenes/meal_pager_scene_set_last_station.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ bool meal_pager_scene_set_last_station_on_event(void* context, SceneManagerEvent
4343
app->last_station = atoi(app->text_store[1]);
4444
if(app->last_station > app->max_station) {
4545
app->last_station = app->max_station;
46-
snprintf(app->text_store[1], 5, "%lu", app->last_station);
46+
snprintf(app->text_store[1], 20, "%lu", app->last_station);
4747
}
4848
if(app->last_station < app->first_station) {
4949
app->last_station = app->first_station;
50-
snprintf(app->text_store[1], 5, "%lu", app->last_station);
50+
snprintf(app->text_store[1], 20, "%lu", app->last_station);
5151
}
5252
app->last_station_char = app->text_store[1];
5353
scene_manager_previous_scene(app->scene_manager);

0 commit comments

Comments
 (0)