Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Fixes for toolchain 28 / gcc 12
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Feb 12, 2024
1 parent d6cc186 commit 374a30a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion applications/drivers/subghz/cc1101_ext/cc1101_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ void subghz_device_cc1101_ext_free() {
furi_assert(subghz_device_cc1101_ext != NULL);

furi_hal_spi_bus_handle_deinit(subghz_device_cc1101_ext->spi_bus_handle);
free(subghz_device_cc1101_ext);

// resetting the CS pins to floating
if(xtreme_settings.spi_nrf24_handle == SpiDefault || subghz_device_cc1101_ext->power_amp) {
Expand All @@ -261,6 +260,7 @@ void subghz_device_cc1101_ext_free() {
furi_hal_gpio_init_simple(&gpio_ext_pa4, GpioModeAnalog);
}

free(subghz_device_cc1101_ext);
subghz_device_cc1101_ext = NULL;
}

Expand Down
4 changes: 2 additions & 2 deletions applications/main/xtreme_app/xtreme_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ bool xtreme_app_apply(XtremeApp* app) {
while(flipper_format_delete_key(file, "Frequency"))
;
FrequencyList_it(it, app->subghz_static_freqs);
for(uint i = 0; i < FrequencyList_size(app->subghz_static_freqs); i++) {
for(size_t i = 0; i < FrequencyList_size(app->subghz_static_freqs); i++) {
flipper_format_write_uint32(
file, "Frequency", FrequencyList_get(app->subghz_static_freqs, i), 1);
}

if(!flipper_format_rewind(file)) break;
while(flipper_format_delete_key(file, "Hopper_frequency"))
;
for(uint i = 0; i < FrequencyList_size(app->subghz_hopper_freqs); i++) {
for(size_t i = 0; i < FrequencyList_size(app->subghz_hopper_freqs); i++) {
flipper_format_write_uint32(
file, "Hopper_frequency", FrequencyList_get(app->subghz_hopper_freqs, i), 1);
}
Expand Down
6 changes: 3 additions & 3 deletions applications/services/desktop/views/desktop_view_lock_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ void desktop_lock_menu_draw_callback(Canvas* canvas, void* model) {
canvas_set_color(canvas, ColorBlack);
canvas_set_font(canvas, FontBatteryPercent);

int x, y, w, h;
int8_t x, y, w, h;
bool selected, toggle;
bool enabled = false;
uint value = 0;
int total = 58;
uint8_t value = 0;
int8_t total = 58;
const Icon* icon = NULL;
for(size_t i = 0; i < DesktopLockMenuIndexTotalCount; ++i) {
selected = m->idx == i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void storage_settings_scene_sd_info_on_enter(void* context) {
double total_v = (double)sd_info.kb_total;
double free_v = (double)sd_info.kb_free;
char* units[] = {"KiB", "MiB", "GiB", "TiB"};
uint total_i, free_i;
uint8_t total_i, free_i;
for(total_i = 0; total_i < COUNT_OF(units); total_i++) {
if(total_v < 1024) break;
total_v /= 1024;
Expand Down

0 comments on commit 374a30a

Please sign in to comment.