fix: map scrolling (#101)

* prepare for map unit tests; fix scroll issue

* add map scroll unit tests

* force redraw on internal scroll error (kinda self-healing)
This commit is contained in:
Manuel
2025-03-23 12:31:34 +01:00
committed by GitHub
parent c52c3bd56c
commit cd0cdf997f
10 changed files with 228 additions and 50 deletions
+33
View File
@@ -42,6 +42,39 @@ class ILog
#define ILOG_CRIT(...) LOG_CRIT("[DeviceUI] " __VA_ARGS__)
#define ILOG_TRACE(...) LOG_TRACE("[DeviceUI] " __VA_ARGS__)
#elif defined(DEBUG_UNIT_TEST)
#include <cstdio>
#define ILOG_DEBUG(...) \
{ \
printf("DEBUG " __VA_ARGS__); \
printf("\n"); \
}
#define ILOG_INFO(...) \
{ \
printf("INFO " __VA_ARGS__); \
printf("\n"); \
}
#define ILOG_WARN(...) \
{ \
printf("WARN " __VA_ARGS__); \
printf("\n"); \
}
#define ILOG_ERROR(...) \
{ \
printf("ERROR " __VA_ARGS__); \
printf("\n"); \
}
#define ILOG_CRIT(...) \
{ \
printf("CRIT " __VA_ARGS__); \
printf("\n"); \
}
#define ILOG_TRACE(...) \
{ \
printf("TRACE " __VA_ARGS__); \
printf("\n"); \
}
#else // no logging
#define ILOG_DEBUG(...)