mirror of
https://github.com/m5stack/meshtastic-device-ui.git
synced 2026-05-20 11:51:03 -07:00
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:
@@ -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(...)
|
||||
|
||||
Reference in New Issue
Block a user