mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-04-08 14:18:06 +03:00
style: apply clang-format and enforce left pointer alignment
This commit is contained in:
@@ -12,43 +12,35 @@
|
||||
#include "unity.h"
|
||||
#include "esp_log.h"
|
||||
#include "test_common_init.h"
|
||||
#include "tools.h" // Assuming tools.h contains init_spiffs and listFiles
|
||||
#include "tools.h" // Assuming tools.h contains init_spiffs and listFiles
|
||||
#include "freertos/task.h"
|
||||
#include "network_manager.h"
|
||||
#include "messaging.h"
|
||||
#include "tools_spiffs_utils.h"
|
||||
#include "bootstate.h"
|
||||
|
||||
static const char * TAG = "test_runner";
|
||||
bool spiffs_started=false;
|
||||
bool dummycond=false;
|
||||
static const char* TAG = "test_runner";
|
||||
bool spiffs_started = false;
|
||||
bool dummycond = false;
|
||||
static EXT_RAM_ATTR RingbufHandle_t messaging;
|
||||
|
||||
|
||||
static void print_banner(const char* text)
|
||||
{
|
||||
printf("\n#### %s #####\n\n", text);
|
||||
}
|
||||
static void print_banner(const char* text) { printf("\n#### %s #####\n\n", text); }
|
||||
|
||||
void common_test_init() {
|
||||
if(!spiffs_started){
|
||||
if(!spiffs_started) {
|
||||
spiffs_started = true;
|
||||
init_spiffs();
|
||||
listFiles(spiffs_base_path);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
void app_main() {
|
||||
esp_log_level_set("*", ESP_LOG_DEBUG);
|
||||
messaging_service_init();
|
||||
|
||||
bootstate_handle_boot();
|
||||
|
||||
|
||||
init_spiffs();
|
||||
if (esp_log_level_get(TAG) >= ESP_LOG_DEBUG) {
|
||||
listFiles(spiffs_base_path);
|
||||
}
|
||||
if(esp_log_level_get(TAG) >= ESP_LOG_DEBUG) { listFiles(spiffs_base_path); }
|
||||
|
||||
// Start the network task at this point; this is critical
|
||||
// as various subsequent init steps will post events to the queue
|
||||
@@ -56,9 +48,8 @@ void app_main() {
|
||||
|
||||
// also register a subscriber in case we need to check for results in tests
|
||||
messaging = messaging_register_subscriber(10, "test_runner");
|
||||
|
||||
|
||||
/* These are the different ways of running registered tests.
|
||||
/* These are the different ways of running registered tests.
|
||||
* In practice, only one of them is usually needed.
|
||||
*
|
||||
* UNITY_BEGIN() and UNITY_END() calls tell Unity to print a summary
|
||||
|
||||
Reference in New Issue
Block a user