NFC Maker tidy up buffers and rename scenes

This commit is contained in:
Willy-JL
2023-07-12 02:55:07 +02:00
parent 6e9e6262c6
commit 99b6a6af86
15 changed files with 90 additions and 81 deletions

View File

@@ -17,8 +17,12 @@
#include <applications/main/nfc/nfc_i.h>
#include <furi_hal_bt.h>
#define TEXT_INPUT_LEN 248
#define WIFI_INPUT_LEN 90
#define MAC_INPUT_LEN GAP_MAC_ADDR_SIZE
#define MAIL_INPUT_LEN 128
#define PHONE_INPUT_LEN 17
#define BIG_INPUT_LEN 248
#define SMALL_INPUT_LEN 90
typedef enum {
WifiAuthenticationOpen = 0x01,
@@ -45,10 +49,14 @@ typedef struct {
ByteInput* byte_input;
Popup* popup;
uint8_t mac_buf[GAP_MAC_ADDR_SIZE];
char text_buf[TEXT_INPUT_LEN];
char pass_buf[WIFI_INPUT_LEN];
char name_buf[TEXT_INPUT_LEN];
uint8_t mac_buf[MAC_INPUT_LEN];
char mail_buf[MAIL_INPUT_LEN];
char phone_buf[PHONE_INPUT_LEN];
char big_buf[BIG_INPUT_LEN];
char small_buf1[SMALL_INPUT_LEN];
char small_buf2[SMALL_INPUT_LEN];
char save_buf[BIG_INPUT_LEN];
} NfcMaker;
typedef enum {