Fix warnings

This commit is contained in:
Ganapati
2022-09-01 17:46:08 +02:00
parent d37dbb29bf
commit f537ccfe14
3 changed files with 3 additions and 3 deletions

View File

@@ -102,6 +102,7 @@ void flipfrid_free(FlipFridState* flipfrid) {
// ENTRYPOINT
int32_t flipfrid_start(void* p) {
UNUSED(p);
// Input
FURI_LOG_I(TAG, "Initializing input");
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(FlipFridEvent));

View File

@@ -8,7 +8,6 @@ bool flipfrid_load(FlipFridState* context, const char* file_path) {
FlipperFormat* fff_data_file = flipper_format_file_alloc(storage);
string_t temp_str;
string_init(temp_str);
uint32_t temp_data32;
do {
if(!flipper_format_file_open_existing(fff_data_file, file_path)) {
FURI_LOG_E(TAG, "Error open file %s", file_path);

View File

@@ -25,7 +25,7 @@ void flipfrid_center_displayed_key(FlipFridState* context, uint8_t index) {
display_menu[7] = key_cstr[str_index];
display_menu[8] = key_cstr[str_index + 1];
if((str_index + 4) <= strlen(key_cstr)) {
if((str_index + 4) <= (uint8_t) strlen(key_cstr)) {
display_menu[11] = key_cstr[str_index + 3];
display_menu[12] = key_cstr[str_index + 4];
} else {
@@ -33,7 +33,7 @@ void flipfrid_center_displayed_key(FlipFridState* context, uint8_t index) {
display_menu[12] = ' ';
}
if((str_index + 8) <= strlen(key_cstr)) {
if((str_index + 8) <= (uint8_t) strlen(key_cstr)) {
display_menu[14] = key_cstr[str_index + 6];
display_menu[15] = key_cstr[str_index + 7];
} else {