Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
+2
-2
@@ -124,10 +124,10 @@ bool sanitizeUtf8(char *buf, size_t bufSize)
|
|||||||
if (!buf || bufSize == 0)
|
if (!buf || bufSize == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Ensure null-terminated within buffer
|
// Ensure null-terminated within buffer; report if we had to enforce it
|
||||||
|
bool replaced = (buf[bufSize - 1] != '\0');
|
||||||
buf[bufSize - 1] = '\0';
|
buf[bufSize - 1] = '\0';
|
||||||
|
|
||||||
bool replaced = false;
|
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
size_t len = strlen(buf);
|
size_t len = strlen(buf);
|
||||||
|
|
||||||
|
|||||||
@@ -303,6 +303,10 @@ void setup()
|
|||||||
{
|
{
|
||||||
initializeTestEnvironment();
|
initializeTestEnvironment();
|
||||||
|
|
||||||
|
// Wait for portduino's millis() clock to start ticking before tests run
|
||||||
|
testDelay(10);
|
||||||
|
testDelay(2000);
|
||||||
|
|
||||||
UNITY_BEGIN();
|
UNITY_BEGIN();
|
||||||
|
|
||||||
RUN_TEST(test_setLastSentToMesh_stores_millis);
|
RUN_TEST(test_setLastSentToMesh_stores_millis);
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ void test_above_max_codepoint()
|
|||||||
TEST_ASSERT_TRUE(sanitizeUtf8(buf, sizeof(buf)));
|
TEST_ASSERT_TRUE(sanitizeUtf8(buf, sizeof(buf)));
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
void setup()
|
||||||
{
|
{
|
||||||
UNITY_BEGIN();
|
UNITY_BEGIN();
|
||||||
|
|
||||||
@@ -191,5 +191,7 @@ int main(int argc, char **argv)
|
|||||||
RUN_TEST(test_valid_max_codepoint);
|
RUN_TEST(test_valid_max_codepoint);
|
||||||
RUN_TEST(test_above_max_codepoint);
|
RUN_TEST(test_above_max_codepoint);
|
||||||
|
|
||||||
return UNITY_END();
|
exit(UNITY_END());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void loop() {}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
[portduino_base]
|
[portduino_base]
|
||||||
platform =
|
platform =
|
||||||
# renovate: datasource=git-refs depName=platform-native packageName=https://github.com/meshtastic/platform-native gitBranch=develop
|
# renovate: datasource=git-refs depName=platform-native packageName=https://github.com/meshtastic/platform-native gitBranch=develop
|
||||||
https://github.com/meshtastic/platform-native/archive/71ed55bb95feb3c43ebde1ec1e2e17643a424c04.zip
|
https://github.com/meshtastic/platform-native/archive/135b91e953db0b5f44d278f8ebd5b8d985fc03d8.zip
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
|
||||||
build_src_filter =
|
build_src_filter =
|
||||||
|
|||||||
Reference in New Issue
Block a user