From 920bee05324ca4d80eaa79319f4c627ef3a09f06 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Sun, 5 Mar 2023 02:27:06 +0300 Subject: [PATCH 1/4] Update changelog --- CHANGELOG.md | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27bf40e1c..fa08c4e24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,27 +1,18 @@ ### New changes * If you have copied apps into `apps` folder - remove `apps` folder on your microSD before installing this release to avoid issues! -* SubGHz: Fixed timings for static CAME 12 bit and other types (fixed issue #280) -* SubGHz: Fix #370 and fix other protocol counter issues -* SubGHz: **Custom buttons for Nice Flor S / Somfy Telis (+Programming mode)** - now you can use arrow buttons to send signal with different button code -* SubGHz: Somfy Telis -> Add manually (create new remote, now with programming button (Prog / 0x8) you can write it into receiver) -* SubGHz: BFT Mitto -> Add manually (create new remote, now with programming button (0xF) you can write it into receiver) -* SubGHz: Nice One -> Add manually (programming is possible using regular button) -* SubGHz: More precise settings for debug counter increase value -* Plugins -> MouseJacker: Features, Fixes and improvements (by @MatthisC | PR #366) -* Plugins -> HC-SR04: Improve accuracy by measuring microseconds (by @clashlab | PR #367) -* OFW PR: 2441 - Infrared: Fix hangups on repeated button press (by gsurkov) -* OFW PR: 2440 - Fix navigation on unsupported card types (by Astrrra) -* OFW: BadUSB UI fixes -* OFW: Plugins: move to designated categories -> **We moved some plugins to new categories too** -* OFW: Drivers: remove excessive check in bq25896 and make PVS happy -* OFW: FuriHal, Power, UnitTests: fix, rename battery charging voltage limit API -> **Breaking API change, api was changed from 14.x to 15.x** +* SubGHz: Default custom buttons layout for non standard remotes (for example your remote has broken buttons and transmit only 0xC, now you can use other buttons) +* SubGHz: Fix and update subghz protocols to use new error system +* SubGHz: Fix default frequency being overwritten bug (Add manually fixes) +* iButton: Fix ibutton app - add manually - duplicate names +* Plugins: Update POCSAG Pager app to new error system +* Plugins: Update iButton Fuzzer to new iButton system +* OFW: Archive browser: update path on dir leave +* OFW: SubGhz: better and more verbose error handling in protocols, stricter CAME validation -> **Breaking API change, api was changed from 16.x to 17.x** +* OFW: iButton system and app refactoring (+new protocols) -> **Breaking API change, api was changed from 15.x to 16.x** **(this will make your manually copied plugins not work, update them in same way you installed them, or delete `apps` folder and then install firmware, if you using extra pack builds (with `e` in version) all apps in _Extra will be updated automatically)** -* OFW: Fix incorrect type choise condition in image compressor -* OFW: Updater: handle storage errors when removing files, fix folder remove routine, prevent unused services from starting -* OFW: Unify power info, power debug, and device_info into one info command -* OFW: SD Cache: moved to diskio layer, invalidation in case of error -* OFW: Picopass: factory key support, minor code cleanup +* OFW: New pin reset splashscreen +* OFW: Getter for application data path #### [🎲 Download latest extra apps pack](https://github.com/xMasterX/unleashed-extra-pack/archive/refs/heads/main.zip) From f1f2718598af1a7e1aaefa34555ece89bf32ff23 Mon Sep 17 00:00:00 2001 From: Kevin <46859125+403-Fruit@users.noreply.github.com> Date: Sat, 4 Mar 2023 19:46:14 -1000 Subject: [PATCH 2/4] Blackjack game: fix bug counting more than one ace Take into account how many aces there are before using 11 as the value for an ace --- applications/plugins/blackjack/common/card.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/plugins/blackjack/common/card.c b/applications/plugins/blackjack/common/card.c index 199135bb5..88228fda4 100644 --- a/applications/plugins/blackjack/common/card.c +++ b/applications/plugins/blackjack/common/card.c @@ -173,7 +173,7 @@ uint8_t hand_count(const Card* cards, uint8_t count) { } for(uint8_t i = 0; i < aceCount; i++) { - if((score + 11) <= 21) + if((score + 11 + (aceCount - 1)) <= 21) score += 11; else score++; @@ -350,4 +350,4 @@ void add_hand_region(Hand* to, Hand* from) { add_to_hand(to, from->cards[i]); } } -} \ No newline at end of file +} From f6123571507ce4c03c5d491c34a819fdfeb89413 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Sun, 5 Mar 2023 23:09:54 +0300 Subject: [PATCH 3/4] Exclude 464Mhz from freq analyzer --- CHANGELOG.md | 1 + .../main/subghz/helpers/subghz_frequency_analyzer_worker.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa08c4e24..dc35e791a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * SubGHz: Default custom buttons layout for non standard remotes (for example your remote has broken buttons and transmit only 0xC, now you can use other buttons) * SubGHz: Fix and update subghz protocols to use new error system * SubGHz: Fix default frequency being overwritten bug (Add manually fixes) +* SubGHz: Fix 464Mhz was showing up in Frequency analyzer all the time due to noise * iButton: Fix ibutton app - add manually - duplicate names * Plugins: Update POCSAG Pager app to new error system * Plugins: Update iButton Fuzzer to new iButton system diff --git a/applications/main/subghz/helpers/subghz_frequency_analyzer_worker.c b/applications/main/subghz/helpers/subghz_frequency_analyzer_worker.c index d4e719792..250cc8aef 100644 --- a/applications/main/subghz/helpers/subghz_frequency_analyzer_worker.c +++ b/applications/main/subghz/helpers/subghz_frequency_analyzer_worker.c @@ -119,7 +119,7 @@ static int32_t subghz_frequency_analyzer_worker_thread(void* context) { for(size_t i = 0; i < subghz_setting_get_frequency_count(instance->setting); i++) { uint32_t current_frequency = subghz_setting_get_frequency(instance->setting, i); if(furi_hal_subghz_is_frequency_valid(current_frequency) && - (current_frequency != 467750000) && + (current_frequency != 467750000) && (current_frequency != 464000000) && !((furi_hal_subghz.radio_type == SubGhzRadioExternal) && (current_frequency >= 311900000 && current_frequency <= 312200000))) { furi_hal_spi_acquire(furi_hal_subghz.spi_bus_handle); From d780752d9eac0d0258a12de7559506b3c21b872d Mon Sep 17 00:00:00 2001 From: Willy-JL Date: Sun, 5 Mar 2023 20:38:35 +0000 Subject: [PATCH 4/4] Fix unirf freeze (protocol deserialize status ok) --- applications/main/unirfremix/unirfremix_app.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applications/main/unirfremix/unirfremix_app.c b/applications/main/unirfremix/unirfremix_app.c index 597870f94..b7295754c 100644 --- a/applications/main/unirfremix/unirfremix_app.c +++ b/applications/main/unirfremix/unirfremix_app.c @@ -402,7 +402,9 @@ bool unirfremix_key_load( preset->decoder = subghz_receiver_search_decoder_base_by_name( receiver, furi_string_get_cstr(preset->protocol)); if(preset->decoder) { - if(!subghz_protocol_decoder_base_deserialize(preset->decoder, fff_data)) { + SubGhzProtocolStatus status = subghz_protocol_decoder_base_deserialize(preset->decoder, fff_data); + if(status != SubGhzProtocolStatusOk) { + FURI_LOG_E(TAG, "Protocol deserialize failed, status = %d", status); break; } } else {