Skip to content

Commit 0bd8dee

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents 2828dbe + 7800dc3 commit 0bd8dee

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/meshUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ bool sanitizeUtf8(char *buf, size_t bufSize)
124124
if (!buf || bufSize == 0)
125125
return false;
126126

127-
// Ensure null-terminated within buffer
127+
// Ensure null-terminated within buffer; report if we had to enforce it
128+
bool replaced = (buf[bufSize - 1] != '\0');
128129
buf[bufSize - 1] = '\0';
129130

130-
bool replaced = false;
131131
size_t i = 0;
132132
size_t len = strlen(buf);
133133

test/test_transmit_history/test_main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ void setup()
303303
{
304304
initializeTestEnvironment();
305305

306+
// Wait for portduino's millis() clock to start ticking before tests run
307+
testDelay(10);
308+
testDelay(2000);
309+
306310
UNITY_BEGIN();
307311

308312
RUN_TEST(test_setLastSentToMesh_stores_millis);

test/test_utf8/test_main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void test_above_max_codepoint()
163163
TEST_ASSERT_TRUE(sanitizeUtf8(buf, sizeof(buf)));
164164
}
165165

166-
int main(int argc, char **argv)
166+
void setup()
167167
{
168168
UNITY_BEGIN();
169169

@@ -191,5 +191,7 @@ int main(int argc, char **argv)
191191
RUN_TEST(test_valid_max_codepoint);
192192
RUN_TEST(test_above_max_codepoint);
193193

194-
return UNITY_END();
194+
exit(UNITY_END());
195195
}
196+
197+
void loop() {}

variants/native/portduino.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[portduino_base]
33
platform =
44
# renovate: datasource=git-refs depName=platform-native packageName=https://github.com/meshtastic/platform-native gitBranch=develop
5-
https://github.com/meshtastic/platform-native/archive/71ed55bb95feb3c43ebde1ec1e2e17643a424c04.zip
5+
https://github.com/meshtastic/platform-native/archive/135b91e953db0b5f44d278f8ebd5b8d985fc03d8.zip
66
framework = arduino
77

88
build_src_filter =

0 commit comments

Comments
 (0)