mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-05-26 06:57:44 +01:00
style: apply clang-format and enforce left pointer alignment
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
#include "string.h"
|
||||
#include "esp_log.h"
|
||||
#include "targets.h"
|
||||
static const char * TAG = "targets";
|
||||
const struct target_s *target_set[] = { &target_muse, NULL };
|
||||
static const char* TAG = "targets";
|
||||
const struct target_s* target_set[] = {&target_muse, NULL};
|
||||
|
||||
void target_init(char *target) {
|
||||
ESP_LOGI(TAG,"Checking if target %s needs init",target);
|
||||
for (int i = 0; *target && target_set[i]; i++) if (strcasestr(target_set[i]->model, target)) {
|
||||
ESP_LOGI(TAG,"Initializing target %s ",target);
|
||||
target_set[i]->init();
|
||||
break;
|
||||
}
|
||||
void target_init(char* target) {
|
||||
ESP_LOGI(TAG, "Checking if target %s needs init", target);
|
||||
for(int i = 0; *target && target_set[i]; i++)
|
||||
if(strcasestr(target_set[i]->model, target)) {
|
||||
ESP_LOGI(TAG, "Initializing target %s ", target);
|
||||
target_set[i]->init();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user