Fix tests

This commit is contained in:
cpq
2026-04-19 09:20:54 +01:00
parent f564526088
commit 21e4562e03
@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: 2026 Cesanta Software Limited // SPDX-FileCopyrightText: 2026 Cesanta Software Limited
// SPDX-License-Identifier: GPL-2.0-only or commercial // SPDX-License-Identifier: GPL-2.0-only or commercial
#include "mongoose.h"
#include "math.h" #include "math.h"
#include "mongoose.h"
#if MG_ARCH == MG_ARCH_UNIX || MG_ARCH == MG_ARCH_WIN32 #if MG_ARCH == MG_ARCH_UNIX || MG_ARCH == MG_ARCH_WIN32
#define HTTP_ADDR "http://0.0.0.0:8000" #define HTTP_ADDR "http://0.0.0.0:8000"
@@ -10,8 +10,7 @@
#define HTTP_ADDR "http://0.0.0.0:80" #define HTTP_ADDR "http://0.0.0.0:80"
#endif #endif
#define NUM_POINTS 256 // How many data points to send #define NUM_POINTS 256 // How many data points to send
// #define INTERVAL_MS 200 // How often, in milliseconds
struct point { struct point {
uint16_t x; // X coordinate of the data point, usually this is time uint16_t x; // X coordinate of the data point, usually this is time
@@ -43,7 +42,6 @@ static void get_points(union mg_val *val) {
val->fn = (void (*)(void)) print_points; val->fn = (void (*)(void)) print_points;
} }
static bool s_led; static bool s_led;
static void get_led(union mg_val *val) { static void get_led(union mg_val *val) {