gullradriel
eb4a328c89
do not free/realloc furi_string as flipper_format_read_string is doing a reset of the string, check for problems and return error
2026-02-12 11:47:27 +01:00
gullradriel
c4c7b6baee
removed unneeded headers
2026-02-12 11:39:11 +01:00
gullradriel
783f5597f9
use calloc instead of malloc, remove not needed anymore variable set to 0 as the calloc do them, furi_check the allocated memory
2026-02-12 11:20:31 +01:00
gullradriel
637092c27e
- Harden Manchester timing/reset, shrink encoder emit code
...
- Add compact timing helpers/macros for consistent TE tolerance checks
- Reset decoder Manchester state + counters in reset() to avoid stale parses
- Make Type2 Manchester decoder use tolerance-based checks (half-bit robustness)
- Compact repeated encoder Manchester bit emission via macro
- Add upload buffer overflow guards in encoder builders
2026-02-12 09:33:04 +01:00
gullradriel
49c86ef68b
merge upstream
2026-02-12 02:30:52 -05:00
MX
602b24ee41
fix ui
FAP Build / ufbt: Build for Momentum dev (push) Successful in 37s
FAP Build / ufbt: Build for OFW dev channel (push) Successful in 41s
FAP Build / ufbt: Build for OFW release channel (push) Successful in 38s
FAP Build / ufbt: Build for Momentum release (push) Successful in 1m15s
FAP Build / ufbt: Build for Unleashed dev (push) Successful in 49s
FAP Build / ufbt: Build for Unleashed release (push) Successful in 47s
2026-02-12 03:46:03 +03:00
gullradriel
0271feca44
use calloc instead of malloc, avoid setting variables to zero after
2026-02-12 00:18:49 +01:00
gullradriel
20a1860395
make aut64_pack compilation optional, as it's not (yet?) used in the code
2026-02-11 23:38:04 +01:00
gullradriel
ecdee5cf1e
make validations optionnal
2026-02-11 23:18:25 +01:00
gullradriel
d2c153a5c6
make aut64 validations optional via a define
2026-02-11 23:04:33 +01:00
gullradriel
6e01796a95
Use updated aut64 API, catch errors
2026-02-11 22:42:40 +01:00
gullradriel
7196583200
- API now returns status codes instead of void
...
- aut64_encrypt/decrypt/pack/unpack now return int
- API now uses pointers everywhere
- Made 0xFF sentinel meaningful
- Strict key validation added and enforced
- aut64_encrypt, aut64_decrypt, and aut64_pack fail fast if the key is invalid
- aut64_unpack() unpacks into dest, then validates the resulting key
- Pointer validation for public API functions
- Removed sizeof(...) loop bounds and replaced with defined sizes
- Avoid reading uninitialized memory / overwriting incorrectly
- Converted hardcoded message[7] to message[AUT64_BLOCK_SIZE - 1].
- Upgraded internal array dimensions to use defines
2026-02-11 22:42:05 +01:00
gullradriel
695d9c3d46
rename AUT64_KEY_STRUCT_PACKED_SIZE to AUT64_PACKED_KEY_SIZE as the size is not the struct size but the packed key size
2026-02-11 16:28:12 +01:00
gullradriel
dde432b114
merge upstream
2026-02-11 08:48:03 -05:00
gullradriel
2b65d3e135
format + define helpers description
2026-02-11 11:21:28 +01:00
MMX
33c19c9e97
Merge pull request 'gull-parse-scenes' ( #15 ) from gullradriel/ProtoPirate:gull-parse-scenes into main
...
FAP Build / ufbt: Build for Momentum release (push) Successful in 39s
FAP Build / ufbt: Build for OFW dev channel (push) Successful in 40s
FAP Build / ufbt: Build for Momentum dev (push) Successful in 1m2s
FAP Build / ufbt: Build for OFW release channel (push) Successful in 37s
FAP Build / ufbt: Build for Unleashed dev (push) Successful in 46s
FAP Build / ufbt: Build for Unleashed release (push) Successful in 56s
Reviewed-on: http://protopirate.net/ProtoPirate/ProtoPirate/pulls/15
Reviewed-by: MMX <mmx@no-reply.protopirate.net >
2026-02-11 05:21:12 -05:00
gullradriel
08d27354a5
fix risky/bon-portable 'inline' usage. Follow flipper zero codebase that mainly use static inline in headers for short functions, which guarantee that it will be inlined
2026-02-11 11:19:51 +01:00
gullradriel
06521f8329
return UNKNOWN if no preset name is given
2026-02-11 11:07:35 +01:00
gullradriel
30ceaf351d
added some more furi_check
2026-02-11 10:00:00 +01:00
gullradriel
4c1761b61b
added some furi_check, check for furi_string
2026-02-11 09:58:28 +01:00
gullradriel
24635e76e0
remove duplicated code, do we really want the same code if auto_save is not on ?
2026-02-11 09:46:31 +01:00
gullradriel
559b2c231f
adjust close_file_handles for conditional storage close
2026-02-11 09:36:17 +01:00
gullradriel
caa1da746e
also free g_decode_ctx on errors
2026-02-11 09:35:00 +01:00
gullradriel
581162e17d
only get rssi if we have a valid radio_device
2026-02-11 09:33:38 +01:00
gullradriel
477fbada1f
fix, device name can be NULL
2026-02-11 09:31:57 +01:00
gullradriel
29c946455d
check for radio device before getting rssi from it
2026-02-11 09:29:36 +01:00
gullradriel
6fe8fb4b54
add a furi_check and check malloc result
2026-02-11 09:27:25 +01:00
gullradriel
1321288a9e
fix 'not closing storage on success path' which was leaking record handle, test ff, remove uneeded variables
2026-02-11 09:24:49 +01:00
gullradriel
bd75ec2e18
add a furi_check on context, better is_emu_off default
2026-02-11 09:12:12 +01:00
gullradriel
389edd5b18
fix: is_emu_off is static and only updated when ff exists and Protocol is read. If ff == NULL or the read fails, is_emu_off keeps the previous scene’s value, which can incorrectly hide/show the Emulate button
2026-02-11 09:06:20 +01:00
MX
3bd66ede92
Revert "slow builds, disable other sdks for now"
...
FAP Build / ufbt: Build for Momentum dev (push) Successful in 34s
FAP Build / ufbt: Build for OFW release channel (push) Successful in 43s
FAP Build / ufbt: Build for Unleashed dev (push) Successful in 34s
FAP Build / ufbt: Build for Unleashed release (push) Successful in 37s
FAP Build / ufbt: Build for Momentum release (push) Successful in 3m7s
FAP Build / ufbt: Build for OFW dev channel (push) Successful in 4m12s
This reverts commit 1eb87a0a63 .
2026-02-11 04:55:23 +03:00
MX
aea05d475c
fix kia v2 crc
2026-02-11 04:53:09 +03:00
MX
dac8741ff6
reset on exit instead
2026-02-11 00:00:06 +03:00
MX
08e2002c35
fix sub decode reset
2026-02-10 23:46:43 +03:00
MX
092d1370d3
fix missing define checks and logs removal
2026-02-10 23:46:32 +03:00
MX
1eb87a0a63
slow builds, disable other sdks for now
2026-02-10 23:14:59 +03:00
MX
7c55be2644
rename artifacts
2026-02-10 22:47:22 +03:00
MX
00605037e1
add momentum sdk too
2026-02-10 22:36:58 +03:00
MX
1556029126
try v3 artifact
2026-02-10 22:08:10 +03:00
MX
3acf2d908a
test build
2026-02-10 22:00:08 +03:00
MX
1468ae38ce
add credits
2026-02-10 21:59:48 +03:00
MMX
670535574a
Merge pull request 'gull-parse-views' ( #12 ) from gullradriel/ProtoPirate:gull-parse-views into main
...
Reviewed-on: http://protopirate.net/ProtoPirate/ProtoPirate/pulls/12
Reviewed-by: MMX <mmx@no-reply.protopirate.net >
2026-02-10 12:25:54 -05:00
MMX
9d52596187
Merge pull request 'helpers review and fix' ( #11 ) from gullradriel/ProtoPirate:parsing-and-cleaning-code into main
...
Reviewed-on: http://protopirate.net/ProtoPirate/ProtoPirate/pulls/11
Reviewed-by: MMX <mmx@no-reply.protopirate.net >
2026-02-10 12:25:43 -05:00
gullradriel
9e70c9fbd4
reuse previously processed lock value, call callback outside model lock
2026-02-10 02:04:18 +01:00
gullradriel
2b1a010ef4
added missing initializers
2026-02-10 01:55:40 +01:00
gullradriel
dc8f1318b5
check malloc of receiver_info
2026-02-10 01:48:21 +01:00
gullradriel
94c4e9a748
protopirate_view_receiver_add_item_to_menu: safe copy of name even if NULL
2026-02-10 01:47:57 +01:00
gullradriel
f593ff6fdb
call a callback where needed ?
2026-02-10 01:44:38 +01:00
gullradriel
71f9605a67
receiver: fix InputKeyOk model locking and redraw behavior
2026-02-10 01:40:00 +01:00
gullradriel
5dcbf5891f
keep an internal animation_frame value so we are not messing with the model. In many Flipper view patterns, the model passed to draw is intended to be read-only (it’s typically provided under a lock owned by the view system). Mutating it in draw can cause hard-to-debug behavior
2026-02-10 01:28:12 +01:00