Skip to content

Commit 540862f

Browse files
authored
Merge pull request #9 from derskythe/dev-master
Sync branch
2 parents 500ca07 + 20a6aa0 commit 540862f

File tree

87 files changed

+1891
-855
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1891
-855
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
* @xMasterX
33

44
# Assets
5-
/assets/resources/infrared/ @xMasterX @amec0e
5+
/assets/resources/infrared/assets/ @amec0e @Leptopt1los @xMasterX

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
## New changes
2-
* SubGHz: Support for Ebyte E07 module power amp switch (works with TehRabbitt's Flux Capacitor Board) (by @Sil333033) (PR #559 by @Z3BRO) -> Remade by @xMasterX
2+
* SubGHz: Support for Ebyte E07 module power amp switch (works with TehRabbitt's Flux Capacitor Board) (by @Sil333033) (PR #559 by @Z3BRO) -> Remade by @xMasterX -> Driver code fixed and reworked by @gid9798
3+
* Infrared: Update universal remote assets (by @amec0e | PR #570)
4+
* Infrared: Update universal AC asset (by @Leptopt1los | PR #569)
5+
* Plugins: Add * in NFC Maker keyboard (hold `.`)
6+
* Plugins: Update TOTP (Authenticator) [(by akopachov)](https://github.com/akopachov/flipper-zero_authenticator)
37
* Plugins: Update ESP32: WiFi Marauder companion plugin [(by 0xchocolate)](https://github.com/0xchocolate/flipperzero-wifi-marauder)
48
* Plugins: Update ESP32-CAM -> Camera Suite [(by CodyTolene)](https://github.com/CodyTolene/Flipper-Zero-Camera-Suite) -> (PR #562 by @CodyTolene)
9+
* OFW PR 2949: IR: buttons move feature rework (by nminaylov)
10+
* OFW PR 2941: FDX-B temperature now uses system units (by Astrrra)
11+
* OFW: fbtenv: add additional environ variable to control execution flow
12+
* OFW: NFC CLI: Fix multiple apdu commands from not working when one of them gives an empty response
13+
* OFW: NFC: Fix MFC key invalidation
14+
* OFW: Rename Applications to Apps
15+
* OFW: Fix about screen
16+
* OFW: change FuriThreadPriorityIsr to 31 (configMAX_PRIORITIES-1)
17+
* OFW: External apps icounter
18+
* OFW: Overly missed feature: Infrared: move button (change button order in a remote)
19+
* OFW: Move U2F path to ext
20+
* OFW: New RTC flags in device info
21+
* OFW: Backlight notification fix
522
* OFW: Fix fbtenv restore
623

724
----

ReadMe.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ Encoders made by @assasinfil & @xMasterX:
114114
The majority of this project is developed and maintained by me, @xMasterX.
115115
I'm unemployed, and the only income I receive is from your donations.
116116
Our team is small and the guys are working on this project as much as they can solely based on the enthusiasm they have for this project and the community.
117-
- @assasinfil - SubGHz
117+
- @gid9798 - SubGHz, Plugins, many other things
118+
- @assasinfil - SubGHz protocols
118119
- @Svaarich - UI design and animations
119-
- @Amec0e - Infrared assets
120+
- @amec0e & @Leptopt1los - Infrared assets
120121
- Community moderators in Telegram, Discord, and Reddit
121122
- And of course our GitHub community. Your PRs are a very important part of this firmware and open-source development.
122123

applications/external/nfc_maker/nfc_maker_text_input.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ static char char_to_uppercase(const char letter) {
238238
return 0x5C;
239239
} else if(letter == '\'') {
240240
return 0x60;
241+
} else if(letter == '.') {
242+
return 0x2A;
241243
} else if(char_is_lowercase(letter)) {
242244
return (letter - 0x20);
243245
} else {

applications/external/subbrute

applications/external/totp/application.fam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ App(
1515
],
1616
stack_size=2 * 1024,
1717
order=20,
18-
fap_version="2.3",
18+
fap_version="3.20",
1919
fap_author="Alexander Kopachov (@akopachov)",
2020
fap_description="Software-based TOTP authenticator for Flipper Zero device",
2121
fap_weburl="https://github.com/akopachov/flipper-zero_authenticator",

applications/external/totp/cli/cli.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
#include "commands/automation/automation.h"
1717
#include "commands/details/details.h"
1818

19+
struct TotpCliContext {
20+
PluginState* plugin_state;
21+
};
22+
1923
static void totp_cli_print_unknown_command(const FuriString* unknown_command) {
2024
TOTP_CLI_PRINTF_ERROR(
2125
"Command \"%s\" is unknown. Use \"" TOTP_CLI_COMMAND_HELP
@@ -63,7 +67,7 @@ static void totp_cli_handler(Cli* cli, FuriString* args, void* context) {
6367
} else if(furi_string_cmp_str(cmd, TOTP_CLI_COMMAND_AUTOMATION) == 0) {
6468
totp_cli_command_automation_handle(plugin_state, args, cli);
6569
} else if(furi_string_cmp_str(cmd, TOTP_CLI_COMMAND_RESET) == 0) {
66-
totp_cli_command_reset_handle(plugin_state, cli, cli_context->event_queue);
70+
totp_cli_command_reset_handle(plugin_state, cli);
6771
} else if(furi_string_cmp_str(cmd, TOTP_CLI_COMMAND_UPDATE) == 0) {
6872
totp_cli_command_update_handle(plugin_state, args, cli);
6973
} else if(
@@ -77,13 +81,11 @@ static void totp_cli_handler(Cli* cli, FuriString* args, void* context) {
7781
furi_string_free(cmd);
7882
}
7983

80-
TotpCliContext*
81-
totp_cli_register_command_handler(PluginState* plugin_state, FuriMessageQueue* event_queue) {
84+
TotpCliContext* totp_cli_register_command_handler(PluginState* plugin_state) {
8285
Cli* cli = furi_record_open(RECORD_CLI);
8386
TotpCliContext* context = malloc(sizeof(TotpCliContext));
8487
furi_check(context != NULL);
8588
context->plugin_state = plugin_state;
86-
context->event_queue = event_queue;
8789
cli_add_command(
8890
cli, TOTP_CLI_COMMAND_NAME, CliCommandFlagParallelSafe, totp_cli_handler, context);
8991
furi_record_close(RECORD_CLI);

applications/external/totp/cli/cli.h

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33
#include <cli/cli.h>
44
#include "../types/plugin_state.h"
55

6-
typedef struct {
7-
PluginState* plugin_state;
8-
FuriMessageQueue* event_queue;
9-
} TotpCliContext;
6+
typedef struct TotpCliContext TotpCliContext;
107

11-
TotpCliContext*
12-
totp_cli_register_command_handler(PluginState* plugin_state, FuriMessageQueue* event_queue);
8+
/**
9+
* @brief Registers TOTP CLI handler
10+
* @param plugin_state application state
11+
* @return TOTP CLI context
12+
*/
13+
TotpCliContext* totp_cli_register_command_handler(PluginState* plugin_state);
14+
15+
/**
16+
* @brief Unregisters TOTP CLI handler
17+
* @param context application state
18+
*/
1319
void totp_cli_unregister_command_handler(TotpCliContext* context);

applications/external/totp/cli/cli_helpers.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ extern const char* TOTP_CLI_COLOR_INFO;
3333
#define TOTP_CLI_PRINTF_INFO(format, ...) \
3434
TOTP_CLI_PRINTF_COLORFUL(TOTP_CLI_COLOR_INFO, format, ##__VA_ARGS__)
3535

36-
#define TOTP_CLI_LOCK_UI(plugin_state) \
37-
Scene __previous_scene = plugin_state->current_scene; \
38-
totp_scene_director_activate_scene(plugin_state, TotpSceneStandby)
36+
#define TOTP_CLI_LOCK_UI(plugin_state) \
37+
Scene __previous_scene = plugin_state->current_scene; \
38+
totp_scene_director_activate_scene(plugin_state, TotpSceneStandby); \
39+
totp_scene_director_force_redraw(plugin_state)
3940

40-
#define TOTP_CLI_UNLOCK_UI(plugin_state) \
41-
totp_scene_director_activate_scene(plugin_state, __previous_scene)
41+
#define TOTP_CLI_UNLOCK_UI(plugin_state) \
42+
totp_scene_director_activate_scene(plugin_state, __previous_scene); \
43+
totp_scene_director_force_redraw(plugin_state)
4244

4345
/**
4446
* @brief Checks whether user is authenticated and entered correct PIN.
@@ -109,6 +111,6 @@ void totp_cli_print_error_updating_config_file();
109111
void totp_cli_print_error_loading_token_info();
110112

111113
/**
112-
* @brief Prints message to let user knwo that command is processing now
114+
* @brief Prints message to let user know that command is processing now
113115
*/
114116
void totp_cli_print_processing();

applications/external/totp/cli/commands/add/add.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
struct TotpAddContext {
1212
FuriString* args;
1313
Cli* cli;
14-
uint8_t* iv;
14+
const CryptoSettings* crypto_settings;
1515
};
1616

1717
enum TotpIteratorUpdateTokenResultsEx {
@@ -54,7 +54,7 @@ static TotpIteratorUpdateTokenResult
5454

5555
// Reading token secret
5656
furi_string_reset(temp_str);
57-
TOTP_CLI_PRINTF("Enter token secret and confirm with [ENTER]\r\n");
57+
TOTP_CLI_PRINTF("Enter token secret and confirm with [ENTER]:\r\n");
5858
if(!totp_cli_read_line(context_t->cli, temp_str, mask_user_input)) {
5959
totp_cli_delete_last_line();
6060
furi_string_secure_free(temp_str);
@@ -68,7 +68,7 @@ static TotpIteratorUpdateTokenResult
6868
furi_string_get_cstr(temp_str),
6969
furi_string_size(temp_str),
7070
token_secret_encoding,
71-
context_t->iv);
71+
context_t->crypto_settings);
7272

7373
furi_string_secure_free(temp_str);
7474

@@ -166,7 +166,8 @@ void totp_cli_command_add_handle(PluginState* plugin_state, FuriString* args, Cl
166166

167167
TOTP_CLI_LOCK_UI(plugin_state);
168168

169-
struct TotpAddContext add_context = {.args = args, .cli = cli, .iv = &plugin_state->iv[0]};
169+
struct TotpAddContext add_context = {
170+
.args = args, .cli = cli, .crypto_settings = &plugin_state->crypto_settings};
170171
TotpIteratorUpdateTokenResult add_result =
171172
totp_token_info_iterator_add_new_token(iterator_context, &add_token_handler, &add_context);
172173

0 commit comments

Comments
 (0)