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,9 +1,12 @@
#include "handlers.h"
#include "pico/unique_id.h"
#include "pico/bootrom.h"
#include "dispatch.h"
#include "net.h"
#include "debug_log.h"
std::vector<std::vector<uint8_t>> handle_picoboot(uint32_t message_id, std::span<const uint8_t>) {
dispatch_schedule_ms(100, []{ reset_usb_boot(0, 1); });
return {encode_response(message_id, ResponsePICOBOOT{})};
}