remove local logger component

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-08-11 23:40:55 +02:00
parent c4dcfe6efe
commit 9fe40e1c77
7 changed files with 2 additions and 33 deletions

View File

@@ -1,2 +0,0 @@
idf_component_register(SRCS "logger.c"
INCLUDE_DIRS "include")

View File

@@ -1,5 +0,0 @@
#pragma once
int add(int a, int b);
void log_message(const char* message);

View File

@@ -1,11 +0,0 @@
#include "logger.h"
#include <stdio.h>
int add(int a, int b) {
return a + b;
}
void log_message(const char* message) {
printf("%s\n", message);
}

View File

@@ -1,3 +0,0 @@
idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "."
REQUIRES cmock logger)

View File

@@ -1,7 +0,0 @@
#include "unity.h"
#include "logger.h"
TEST_CASE("Add two numbers", "[logger]") {
TEST_ASSERT_EQUAL(3, add(1, 2));
}

View File

@@ -1,5 +1,4 @@
idf_component_register(SRCS "main.c" "osr_ble.c" idf_component_register(SRCS "main.c" "osr_ble.c"
INCLUDE_DIRS "." INCLUDE_DIRS "."
PRIV_REQUIRES PRIV_REQUIRES
nvs_flash nvs_flash)
logger)

View File

@@ -6,8 +6,6 @@
#include "osr_ble.h" #include "osr_ble.h"
#include "sdkconfig.h" #include "sdkconfig.h"
#include "logger.h"
#define TAG "app" #define TAG "app"
void esp32_info() { void esp32_info() {
@@ -41,7 +39,7 @@ void esp32_info() {
void setup() { void setup() {
osr_ble_init(); osr_ble_init();
log_message("Hello World!"); ESP_LOGI(TAG, "Setup done!");
} }
void loop(void* args) { void loop(void* args) {