mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-30 04:19:59 -07:00
Fix warnings
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user