Harden observer preferences and portable controls
This commit is contained in:
1 parent
c1caa5ad81
commit
ae2af7ef4d
28 files changed
+1271
-172
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include "Stream.h"
|
||||
|
||||
inline uint32_t g_mock_millis = 0;
|
||||
@@ -15,3 +16,12 @@ inline uint32_t millis() {
|
||||
inline void delay(uint32_t ms) {
|
||||
g_mock_millis += ms;
|
||||
}
|
||||
|
||||
inline char* ltoa(long value, char* dest, int base) {
|
||||
if (base == 10) {
|
||||
std::snprintf(dest, 16, "%ld", value);
|
||||
} else {
|
||||
dest[0] = '\0';
|
||||
}
|
||||
return dest;
|
||||
}
|
||||
Reference in new issue
Block a user