remove local logger component
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
idf_component_register(SRCS "logger.c"
|
||||
INCLUDE_DIRS "include")
|
@@ -1,5 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
int add(int a, int b);
|
||||
|
||||
void log_message(const char* message);
|
@@ -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);
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
idf_component_register(SRC_DIRS "."
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES cmock logger)
|
@@ -1,7 +0,0 @@
|
||||
#include "unity.h"
|
||||
|
||||
#include "logger.h"
|
||||
|
||||
TEST_CASE("Add two numbers", "[logger]") {
|
||||
TEST_ASSERT_EQUAL(3, add(1, 2));
|
||||
}
|
@@ -1,5 +1,4 @@
|
||||
idf_component_register(SRCS "main.c" "osr_ble.c"
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES
|
||||
nvs_flash
|
||||
logger)
|
||||
nvs_flash)
|
||||
|
@@ -6,8 +6,6 @@
|
||||
#include "osr_ble.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#include "logger.h"
|
||||
|
||||
#define TAG "app"
|
||||
|
||||
void esp32_info() {
|
||||
@@ -41,7 +39,7 @@ void esp32_info() {
|
||||
|
||||
void setup() {
|
||||
osr_ble_init();
|
||||
log_message("Hello World!");
|
||||
ESP_LOGI(TAG, "Setup done!");
|
||||
}
|
||||
|
||||
void loop(void* args) {
|
||||
|
Reference in New Issue
Block a user