Skip to content

Commit

Permalink
Latest Release RM0329-0318-0.100.2-f601860 on PATREON & GitHub - APP …
Browse files Browse the repository at this point in the history
…TWEAKS
  • Loading branch information
RogueMaster committed Apr 3, 2024
2 parents 4bd5dde + ca59a11 commit 7d5de48
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
3 changes: 2 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ This software is for experimental purposes only and is not meant for any illegal
- OFW: [Bad USB: fix crash when selecting a keyboard layout #3555 (By vanguacamolie)](https://github.com/flipperdevices/flipperzero-firmware/pull/3555)
- OFW: [IR: Remember OTG state #3549 (By Willie-JL)](https://github.com/flipperdevices/flipperzero-firmware/pull/3549)
- OFW: [Mifare Ultralight naming fix #3551 (By RebornedBrain)](https://github.com/flipperdevices/flipperzero-firmware/pull/3551)
- [A few app tweaks (By Willy-JL)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/commit/ca59a11a7b22c6882447987dbc2774bb2b1020f8)

<a name="release">

Expand Down Expand Up @@ -397,7 +398,7 @@ $ ./fbt dolphin_ext
- [Flipper Aid v1.0 (By spaghety)](https://github.com/spaghety/flipper-aid)
- [Flipper Doctor v0.1 (By julandealb)](https://github.com/julandealb/flipperdoc)
- [Flipper Tag v1.0 (By thejudge156)](https://github.com/thejudge156/flippertag)
- [Flizzer Tracker v0.6 (By LTVA1)](https://github.com/LTVA1/flizzer_tracker)
- [Flizzer Tracker v0.7 (By LTVA1)](https://github.com/LTVA1/flizzer_tracker)
- [FM Radio v1.1 (By coolshrimp)](https://github.com/coolshrimp/flipperzero-firmware-wPlugins/tree/420/applications/external/fm_radio)
- [FMF2USBMIDI v0.1 (By crackerjacques)](https://github.com/crackerjacques/Flipper_Zero_FMF2USBMIDI)
- [Gas Sensor v0.1 (By iancohee)](https://github.com/iancohee/gas_sensor_fap) `Req: BME680 / SGP30`
Expand Down
6 changes: 4 additions & 2 deletions applications/external/ble_spam/ble_spam.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,14 @@ const NotificationSequence blink_sequence = {
NULL,
};
static void start_blink(State* state) {
if(!state->ctx.led_indicator) return;
uint16_t period = delays[state->delay];
if(period <= 100) period += 30;
blink_message.data.led_blink.period = period;
notification_message_block(state->ctx.notification, &blink_sequence);
}
static void stop_blink(State* state) {
if(!state->ctx.led_indicator) return;
notification_message_block(state->ctx.notification, &sequence_blink_stop);
}

Expand Down Expand Up @@ -227,7 +229,7 @@ static int32_t adv_thread(void* _ctx) {
Payload* payload = &attacks[state->index].payload;
const Protocol* protocol = attacks[state->index].protocol;
if(!payload->random_mac) randomize_mac(state);
if(state->ctx.led_indicator) start_blink(state);
start_blink(state);
if(furi_hal_bt_extra_beacon_is_active()) {
furi_check(furi_hal_bt_extra_beacon_stop());
}
Expand All @@ -246,7 +248,7 @@ static int32_t adv_thread(void* _ctx) {
furi_check(furi_hal_bt_extra_beacon_stop());
}

if(state->ctx.led_indicator) stop_blink(state);
stop_blink(state);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion applications/external/flizzer_tracker/application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ App(
fap_icon_assets_symbol="flizzer_tracker",
fap_author="LTVA",
fap_weburl="https://github.com/LTVA1/flizzer_tracker",
fap_version=(0, 6),
fap_version=(0, 7),
fap_description="An advanced Flipper Zero chiptune tracker with 4 channels",
)
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,17 @@ void sound_engine_fill_buffer(
SoundEngineChannel* channel = &sound_engine->channel[chan];

if(channel->frequency > 0) {
channel->sync_bit = 0;
uint32_t prev_acc = channel->accumulator;

channel->accumulator += channel->frequency;

channel->sync_bit |= (channel->accumulator & ACC_LENGTH);
channel->sync_bit |= (channel->accumulator > ACC_LENGTH ? 1 : 0);

channel->accumulator &= ACC_LENGTH - 1;

if(channel->flags & SE_ENABLE_HARD_SYNC) {
uint8_t hard_sync_src = channel->hard_sync == 0xff ? i : channel->hard_sync;
uint8_t hard_sync_src = channel->hard_sync == 0xff ? chan : channel->hard_sync;

if(sound_engine->channel[hard_sync_src].sync_bit) {
channel->accumulator = 0;
Expand All @@ -129,7 +130,7 @@ void sound_engine_fill_buffer(
sound_engine_osc(sound_engine, channel, prev_acc) - WAVE_AMP / 2;

if(channel->flags & SE_ENABLE_RING_MOD) {
uint8_t ring_mod_src = channel->ring_mod == 0xff ? i : channel->ring_mod;
uint8_t ring_mod_src = channel->ring_mod == 0xff ? chan : channel->ring_mod;
channel_output[chan] =
channel_output[chan] * channel_output[ring_mod_src] / WAVE_AMP;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void set_default_instrument(Instrument* inst) {
inst->adsr.volume = 0x80;

inst->filter_type = FIL_OUTPUT_LOWPASS;
inst->filter_cutoff = 0xff;
inst->filter_cutoff = 0xd0;

inst->program_period = 1;

Expand Down
1 change: 1 addition & 0 deletions applications/external/ir_intervalometer/intervalometer.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ int32_t flipvalo_app() {
}
view_port_free(view_port);
}
furi_hal_infrared_set_tx_output(FuriHalInfraredTxPinInternal);
if(furi_hal_power_is_otg_enabled() != otg_was_enabled) {
if(otg_was_enabled) {
furi_hal_power_enable_otg();
Expand Down
4 changes: 2 additions & 2 deletions applications/external/mfkey/mfkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,12 +679,12 @@ static void render_callback(Canvas* const canvas, void* ctx) {
float eta_round = (float)1 - ((float)program_state->eta_round / (float)eta_round_time);
float eta_total = (float)1 - ((float)program_state->eta_total / (float)eta_total_time);
float progress = (float)program_state->num_completed / (float)program_state->total;
if(eta_round < 0) {
if(eta_round < 0 || eta_round > 1) {
// Round ETA miscalculated
eta_round = 1;
program_state->eta_round = 0;
}
if(eta_total < 0) {
if(eta_total < 0 || eta_total > 1) {
// Total ETA miscalculated
eta_total = 1;
program_state->eta_total = 0;
Expand Down
1 change: 1 addition & 0 deletions applications/external/xremote/xremote.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ int32_t xremote_main(void* p) {
xremote_app_switch_to_view(app, XRemoteViewSubmenu);
view_dispatcher_run(app->app_ctx->view_dispatcher);

furi_hal_infrared_set_tx_output(FuriHalInfraredTxPinInternal);
if(furi_hal_power_is_otg_enabled() != otg_was_enabled) {
if(otg_was_enabled) {
furi_hal_power_enable_otg();
Expand Down

0 comments on commit 7d5de48

Please sign in to comment.