mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 02:52:05 +00:00
parent
bacc525d0a
commit
674fd32349
@ -190,7 +190,7 @@ bool AdminModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, meshta
|
|||||||
}
|
}
|
||||||
case meshtastic_AdminMessage_enter_dfu_mode_request_tag: {
|
case meshtastic_AdminMessage_enter_dfu_mode_request_tag: {
|
||||||
LOG_INFO("Client is requesting to enter DFU mode.\n");
|
LOG_INFO("Client is requesting to enter DFU mode.\n");
|
||||||
#ifdef ARCH_NRF52
|
#if defined(ARCH_NRF52) || defined(ARCH_RP2040)
|
||||||
enterDfuMode();
|
enterDfuMode();
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
@ -35,4 +35,9 @@ void rp2040Setup()
|
|||||||
Taken from CPU cycle counter and ROSC oscillator, so should be pretty random.
|
Taken from CPU cycle counter and ROSC oscillator, so should be pretty random.
|
||||||
*/
|
*/
|
||||||
randomSeed(rp2040.hwrand32());
|
randomSeed(rp2040.hwrand32());
|
||||||
|
}
|
||||||
|
|
||||||
|
void enterDfuMode()
|
||||||
|
{
|
||||||
|
reset_usb_boot(0, 0);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user