Move picoboot reboot into handler via dispatch_schedule_ms

This commit is contained in:
Ian Gulliver
2026-04-10 22:04:38 +09:00
parent f2d98ef4f1
commit 94895fd2fe
2 changed files with 3 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
#include "dispatch.h"
#include <unordered_map>
#include "pico/stdlib.h"
#include "pico/bootrom.h"
#include "tusb.h"
#include "wire.h"
#include "usb_cdc.h"
@@ -72,10 +71,6 @@ void dispatch_schedule_ms(uint32_t ms, std::function<void()> fn) {
usb.send(response);
}
}
if (msg->type_id == RequestPICOBOOT::ext_id) {
sleep_ms(100);
reset_usb_boot(0, 1);
}
}
}