bigbrodude6119 2 năm trước cách đây
mục cha
commit
6988b2cb5f

+ 0 - 1
evil_portal_app.c

@@ -1,5 +1,4 @@
 #include "evil_portal_app_i.h"
 #include "evil_portal_app_i.h"
-#include "helpers/evil_portal_speaker.h"
 #include "helpers/evil_portal_storage.h"
 #include "helpers/evil_portal_storage.h"
 
 
 #include <furi.h>
 #include <furi.h>

+ 0 - 19
helpers/evil_portal_speaker.c

@@ -1,19 +0,0 @@
-#include "evil_portal_speaker.h"
-#include "../evil_portal_app_i.h"
-
-#define NOTE_INPUT 587.33f
-
-void evil_portal_play_input_sound() {
-    float volume = 1.0f;
-    if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(30)) {
-        furi_hal_speaker_start(NOTE_INPUT, volume);
-    }
-    
-}
-
-void evil_portal_stop_all_sound() {
-    if(furi_hal_speaker_is_mine()) {
-        furi_hal_speaker_stop();
-        furi_hal_speaker_release();
-    }
-}

+ 0 - 4
helpers/evil_portal_speaker.h

@@ -1,4 +0,0 @@
-#define NOTE_INPUT 587.33f
-
-void evil_portal_play_input_sound();
-void evil_portal_stop_all_sound();

+ 0 - 16
helpers/evil_portal_storage.h

@@ -5,27 +5,11 @@
 #include <storage/storage.h>
 #include <storage/storage.h>
 #include <string.h>
 #include <string.h>
 
 
-#define EVIL_PORTAL_SETTINGS_FILE_VERSION 1
 #define PORTAL_FILE_DIRECTORY_PATH EXT_PATH("apps_data/evil_portal")
 #define PORTAL_FILE_DIRECTORY_PATH EXT_PATH("apps_data/evil_portal")
-#define EVIL_PORTAL_SETTINGS_SAVE_PATH                                         \
-  PORTAL_FILE_DIRECTORY_PATH "/evil_portal.conf"
-#define EVIL_PORTAL_SETTINGS_SAVE_PATH_TMP EVIL_PORTAL_SETTINGS_SAVE_PATH ".tmp"
 #define EVIL_PORTAL_INDEX_SAVE_PATH PORTAL_FILE_DIRECTORY_PATH "/index.html"
 #define EVIL_PORTAL_INDEX_SAVE_PATH PORTAL_FILE_DIRECTORY_PATH "/index.html"
-#define EVIL_PORTAL_INDEX_SAVE_PATH_TMP EVIL_PORTAL_INDEX_SAVE_PATH ".tmp"
 #define EVIL_PORTAL_AP_SAVE_PATH PORTAL_FILE_DIRECTORY_PATH "/ap.txt"
 #define EVIL_PORTAL_AP_SAVE_PATH PORTAL_FILE_DIRECTORY_PATH "/ap.txt"
-#define EVIL_PORTAL_AP_SAVE_PATH_TMP EVIL_PORTAL_AP_SAVE_PATH ".tmp"
 #define EVIL_PORTAL_LOG_SAVE_PATH PORTAL_FILE_DIRECTORY_PATH "/logs"
 #define EVIL_PORTAL_LOG_SAVE_PATH PORTAL_FILE_DIRECTORY_PATH "/logs"
-#define EVIL_PORTAL_LOG_SAVE_PATH_TMP EVIL_PORTAL_LOG_SAVE_PATH ".tmp"
-#define EVIL_PORTAL_SETTINGS_HEADER "EvilPortal Config File"
-#define EVIL_PORTAL_SETTINGS_KEY_PORTAL "PORTAL"
-#define EVIL_PORTAL_SETTINGS_KEY_HAPTIC "Haptic"
-#define EVIL_PORTAL_SETTINGS_KEY_LED "Led"
-#define EVIL_PORTAL_SETTINGS_KEY_SPEAKER "Speaker"
-#define EVIL_PORTAL_SETTINGS_KEY_SAVE_SETTINGS "SaveSettings"
-#define EVIL_PORTAL_BUF_SIZE 4092
 
 
-// void captive_portal_save_settings(void* context);
-// void captive_portal_read_settings(void* context);
 void evil_portal_read_index_html(void *context);
 void evil_portal_read_index_html(void *context);
 void evil_portal_read_ap_name(void *context);
 void evil_portal_read_ap_name(void *context);
 void write_logs(char* portal_logs);
 void write_logs(char* portal_logs);

+ 0 - 1
scenes/evil_portal_scene_start.c

@@ -1,5 +1,4 @@
 #include "../evil_portal_app_i.h"
 #include "../evil_portal_app_i.h"
-#include "../helpers/evil_portal_speaker.h"
 
 
 // For each command, define whether additional arguments are needed
 // For each command, define whether additional arguments are needed
 // (enabling text input to fill them out), and whether the console
 // (enabling text input to fill them out), and whether the console