Use int debug level

This commit is contained in:
Sergey Lyubka committed 2022-08-01 11:19:32 +01:00
1 parent 581a0698af
commit a468f58128
42 files changed
+89 -114

No files matched your search

@@ -124,9 +124,9 @@ int main(void) {
RCC->AHB1RSTR |= BIT(25); // ETHMAC force reset
RCC->AHB1RSTR &= ~BIT(25); // ETHMAC release reset
struct mg_mgr mgr; // Initialise Mongoose event manager
mg_mgr_init(&mgr); // and attach it to the MIP interface
mg_log_set("2");
struct mg_mgr mgr; // Initialise Mongoose event manager
mg_mgr_init(&mgr); // and attach it to the MIP interface
mg_log_set(MG_LL_DEBUG); // Set log level
mg_timer_add(&mgr, 1000, MG_TIMER_REPEAT, blink_cb, &mgr);
mg_timer_add(&mgr, 5000, MG_TIMER_REPEAT, sntp_cb, &mgr);
mg_http_listen(&mgr, "http://0.0.0.0:80", fn, NULL);
+1 -1
View File
@@ -4,7 +4,7 @@
#include "device.h"
#include "mongoose.h"
static const char *s_debug_level = "4";
static int s_debug_level = MG_LL_VERBOSE;
static const char *s_listening_address = "http://0.0.0.0:80";
// Event handler for the listening connection.