these are probably needed breaks

This commit is contained in:
RogueMaster
2022-11-02 18:40:02 -04:00
parent b2840275d2
commit 90d20f241b
24 changed files with 82 additions and 2 deletions
+3 -2
View File
@@ -12,9 +12,10 @@
- To avoid Application errors and duplicates, delete /ext/apps before doing the RM firmware update
- To avoid Animations missing, restore your /ext/dolphin after the RM firmware update
- Known Issues: `Chess`
- Last Synced/Checked [Unleashed/xMasterX](https://github.com/DarkFlippers/unleashed-firmware), changes in [changelog](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/blob/420/CHANGELOG.md): `2022-11-02 03:59 EST`
- Last Synced/Checked [OFW](https://github.com/flipperdevices/flipperzero-firmware), changes in [commits](https://github.com/flipperdevices/flipperzero-firmware/commits/dev): `2022-11-02 03:59 EST`
- Last Synced/Checked [Unleashed/xMasterX](https://github.com/DarkFlippers/unleashed-firmware), changes in [changelog](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/blob/420/CHANGELOG.md): `2022-11-02 18:18 EST`
- Last Synced/Checked [OFW](https://github.com/flipperdevices/flipperzero-firmware), changes in [commits](https://github.com/flipperdevices/flipperzero-firmware/commits/dev): `2022-11-02 18:18 EST`
- Added: [DHT Monitor (By quen0n)](https://github.com/quen0n/FipperZero-DHT-Monitor)
- Added some stupid breaks for default switch cases.
<details>
<summary><B>TO DO / REMOVED</b></summary><br/>
@@ -346,6 +346,8 @@ static void render_callback(Canvas* const canvas, void* ctx) {
case 9:
number_9(canvas, isOnRight, editingMarkerPosition[index]);
break;
default:
break;
}
}
@@ -599,6 +599,8 @@ int32_t blackjack_app(void* p) {
case InputKeyOk:
localstate->selectDirection = Select;
break;
default:
break;
}
}
} else if(event.type == EventTypeTick) {
+2
View File
@@ -236,6 +236,8 @@ int32_t bpm_tapper_app(void* p) {
// Exit the plugin
processing = false;
break;
default:
break;
}
}
}
@@ -512,6 +512,8 @@ int32_t clock_app(void* p) {
if(plugin_state->codeSequence < (uint32_t)-1) processing = false;
}
break;
default:
break;
}
if(plugin_state->codeSequence == 10) {
plugin_state->codeSequence = 0;
+2
View File
@@ -555,6 +555,8 @@ int32_t dice_app(void* p) {
case InputKeyBack:
processing = false;
break;
default:
break;
}
}
} else if(event.type == EventTypeTick) {
+7
View File
@@ -155,6 +155,9 @@ void spawnEntity(uint8_t type, uint8_t x, uint8_t y, PluginState* const plugin_s
plugin_state->entity[plugin_state->num_entities] = create_medikit(x, y);
plugin_state->num_entities++;
break;
default:
break;
}
}
@@ -458,6 +461,10 @@ void updateEntities(const uint8_t level[], Canvas* const canvas, PluginState* co
}
break;
}
default:
break;
}
i++;
@@ -108,6 +108,8 @@ int32_t flashlight_app() {
case InputKeyBack:
processing = false;
break;
default:
break;
}
}
}
+10
View File
@@ -33,6 +33,8 @@ static void flipfrid_draw_callback(Canvas* const canvas, void* ctx) {
case SceneLoadCustomUids:
flipfrid_scene_load_custom_uids_on_draw(canvas, flipfrid_state);
break;
default:
break;
}
release_mutex((ValueMutex*)ctx, flipfrid_state);
@@ -176,6 +178,8 @@ int32_t flipfrid_start(void* p) {
case SceneLoadCustomUids:
flipfrid_scene_load_custom_uids_on_event(event, flipfrid_state);
break;
default:
break;
}
} else if(event.evt_type == EventTypeTick) {
@@ -200,6 +204,8 @@ int32_t flipfrid_start(void* p) {
break;
case NoneScene:
break;
default:
break;
}
// Trigger Entry Scene
@@ -220,6 +226,8 @@ int32_t flipfrid_start(void* p) {
case SceneLoadCustomUids:
flipfrid_scene_load_custom_uids_on_enter(flipfrid_state);
break;
default:
break;
}
flipfrid_state->previous_scene = flipfrid_state->current_scene;
}
@@ -242,6 +250,8 @@ int32_t flipfrid_start(void* p) {
case SceneLoadCustomUids:
flipfrid_scene_load_custom_uids_on_tick(flipfrid_state);
break;
default:
break;
}
view_port_update(view_port);
}
@@ -486,6 +486,8 @@ void flipfrid_scene_run_attack_on_tick(FlipFridState* context) {
context->payload[i] = (uint8_t)strtol(temp_str, NULL, 16);
}
break;
default:
break;
}
}
}
@@ -466,6 +466,8 @@ int32_t game_2048_app(void* p) {
case InputKeyBack:
loop = false;
break;
default:
break;
}
} else if(event.type == InputTypeLong) {
if(event.key == InputKeyOk) {
@@ -149,6 +149,8 @@ int32_t mandelbrot_app(void* p) {
case InputKeyBack:
processing = false;
break;
default:
break;
}
}
}
@@ -158,6 +158,8 @@ static void timer_callback(void* ctx) {
break;
case Silent:
break;
default:
break;
}
} else {
// unpronounced beat
@@ -171,6 +173,8 @@ static void timer_callback(void* ctx) {
break;
case Silent:
break;
default:
break;
}
};
@@ -192,6 +196,8 @@ static void timer_callback(void* ctx) {
break;
case Silent:
break;
default:
break;
}
notification_message(metronome_state->notifications, &sequence_reset_rgb);
@@ -422,6 +422,8 @@ int32_t montyhall_game_app(void* p) {
case InputKeyBack:
loop = false;
break;
default:
break;
}
}
} else if(event.type == InputTypeLong) {
@@ -142,6 +142,8 @@ int32_t multi_converter_app(void* p) {
case InputKeyDown:
multi_converter_mode_select_change_unit(1, multi_converter_state);
break;
default:
break;
}
}
}
@@ -180,6 +180,8 @@ void multi_converter_mode_display_navigation(
else if((multi_converter_state->display).key < 0)
(multi_converter_state->display).key = MULTI_CONVERTER_DISPLAY_KEYS - 1;
break;
default:
break;
}
// if destination key is disabled by max_number_keys, move to the closest one
+2
View File
@@ -102,6 +102,8 @@ int32_t ocarina_app(void* p) {
case InputKeyBack:
processing = false;
break;
default:
break;
}
} else if(event.type == InputTypeRelease) {
furi_hal_speaker_stop();
+2
View File
@@ -591,6 +591,8 @@ static void render_callback(Canvas* canvas, void* ctx) {
}
}
break;
default:
break;
}
furi_string_free(temp_str);
@@ -515,6 +515,8 @@ int32_t scorched_tanks_game_app(void* p) {
case InputKeyBack:
processing = false;
break;
default:
break;
}
}
} else if(event.type == EventTypeTick) {
@@ -550,6 +550,8 @@ unsigned char* tanks_game_serialize(const TanksState* const tanks_state) {
case DirectionLeft:
cell = CellEnemyLeft;
break;
default:
break;
}
tanks_game_write_cell(
@@ -577,6 +579,8 @@ unsigned char* tanks_game_serialize(const TanksState* const tanks_state) {
case DirectionLeft:
cell = CellProjectileLeft;
break;
default:
break;
}
tanks_game_write_cell(
@@ -603,6 +607,8 @@ unsigned char* tanks_game_serialize(const TanksState* const tanks_state) {
case DirectionLeft:
cell = CellTankLeft;
break;
default:
break;
}
tanks_game_write_cell(
@@ -625,6 +631,8 @@ unsigned char* tanks_game_serialize(const TanksState* const tanks_state) {
case DirectionLeft:
cell = CellTankLeft;
break;
default:
break;
}
tanks_game_write_cell(
@@ -1243,6 +1251,8 @@ static Point tanks_game_get_next_step(Point coordinates, Direction direction) {
case DirectionLeft:
next_step.x--;
break;
default:
break;
}
return next_step;
}
@@ -1699,6 +1709,8 @@ int32_t tanks_game_app(void* p) {
case InputKeyBack:
processing = false;
break;
default:
break;
}
}
} else if(event.type == EventTypeTick) {
@@ -126,6 +126,8 @@ int32_t trexrunner_app(void* p) {
// Exit the app
processing = false;
break;
default:
break;
}
}
}
@@ -288,6 +288,8 @@ int32_t tuning_fork_app() {
tuning_fork_state->page = Tunings;
}
break;
default:
break;
}
} else if(event.input.type == InputTypeLong) {
// hold events
@@ -330,6 +332,8 @@ int32_t tuning_fork_app() {
tuning_fork_state->current_tuning_note_index = 0;
}
break;
default:
break;
}
} else if(event.input.type == InputTypeRepeat) {
// repeat events
@@ -372,6 +376,8 @@ int32_t tuning_fork_app() {
tuning_fork_state->current_tuning_note_index = 0;
}
break;
default:
break;
}
}
}
@@ -788,6 +788,8 @@ static void render_callback(Canvas* canvas, void* ctx) {
canvas_draw_icon(canvas, 113, 15, &I_Pin_cell_13x13);
canvas_draw_icon(canvas, 116, 18, &I_Pin_star_7x7);
break;
default:
break;
}
//Repeat indicator
@@ -1094,6 +1096,8 @@ int32_t unirfremix_app(void* p) {
case 5:
app->send_status_c = 5;
break;
default:
break;
}
app->processing = 2;
+2
View File
@@ -806,6 +806,8 @@ int32_t video_poker_app(void* p) {
/* if game is not over, we should store the game state. */
processing = false;
break;
default:
break;
}
}
}