forked from flipperdevices/flipperzero-firmware
-
-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Mass storage updates and fixes
- Loading branch information
Showing
12 changed files
with
88 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## v.1.2 | ||
|
||
* Fix deadlock on disk eject | ||
* Locked USB notification | ||
|
||
## v.1.1 | ||
|
||
* Faster image creation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#include "../mass_storage_app_i.h" | ||
|
||
void mass_storage_scene_usb_locked_on_enter(void* context) { | ||
MassStorageApp* app = context; | ||
|
||
widget_add_icon_element(app->widget, 78, 0, &I_ActiveConnection_50x64); | ||
widget_add_string_multiline_element( | ||
app->widget, 3, 2, AlignLeft, AlignTop, FontPrimary, "Connection\nis active!"); | ||
widget_add_string_multiline_element( | ||
app->widget, | ||
3, | ||
30, | ||
AlignLeft, | ||
AlignTop, | ||
FontSecondary, | ||
"Disconnect from\nPC or phone to\nuse this function."); | ||
|
||
view_dispatcher_switch_to_view(app->view_dispatcher, MassStorageAppViewWidget); | ||
} | ||
|
||
bool mass_storage_scene_usb_locked_on_event(void* context, SceneManagerEvent event) { | ||
MassStorageApp* app = context; | ||
bool consumed = false; | ||
|
||
if(event.type == SceneManagerEventTypeBack) { | ||
consumed = scene_manager_search_and_switch_to_previous_scene( | ||
app->scene_manager, MassStorageSceneFileSelect); | ||
if(!consumed) { | ||
consumed = scene_manager_search_and_switch_to_previous_scene( | ||
app->scene_manager, MassStorageSceneStart); | ||
} | ||
} | ||
|
||
return consumed; | ||
} | ||
|
||
void mass_storage_scene_usb_locked_on_exit(void* context) { | ||
MassStorageApp* app = context; | ||
widget_reset(app->widget); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters