Align USB test fixtures with regulator recovery hooks

This commit is contained in:
mikecarper committed 2026-10-19 14:14:36 -07:00
1 parent 90ae9cfc14
commit 978732f685
2 files changed
+9 -1

No files matched your search

+5
View File
@@ -1,5 +1,6 @@
// The runner inserts the production KISS setup and backend selection.
#include <Arduino.h>
#include <helpers/RegulatorMode.h>
#include <helpers/UsbLogging.h>
#include <cassert>
#include <string>
@@ -56,6 +57,10 @@ struct Board {
#endif
calls.push_back("board.begin");
}
bool applyMcuRegulator(mesh::power::RegulatorMode mode) {
assert(mode == mesh::power::RegulatorMode::Default);
return false;
}
void reboot() { assert(false); }
void onBootComplete() { calls.push_back("boot.complete"); }
void loop() { calls.push_back("board.loop"); }
+4 -1
View File
@@ -471,7 +471,10 @@ int main(){
# outside pinned2.0.17 C3/S3 mode1. Link hooks are strong, never silent weak stubs.
self.assertIn('ESP_ARDUINO_VERSION_PATCH == 17',source)
self.assertIn('CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3',source)
self.assertNotIn('__attribute__((weak))',source[:source.index('namespace mesh {')])
preamble=source[:source.index('namespace mesh {')]
for declaration in preamble.split(';'):
if 'meshEsp32Hwcdc' in declaration:
self.assertNotIn('__attribute__((weak))',declaration)
self.assertIn('Serial.setTxTimeoutMs(5);',source)
self.assertIn('tx_timeout_ms / portTICK_PERIOD_MS',PATCHED)
self.assertNotIn('max_consec_timeouts',PATCHED)