Skip to content

Commit 5627500

Browse files
author
Scott Powell
committed
* new "clkreboot" CLI command
1 parent d81616e commit 5627500

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/helpers/CommonCLI.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ uint8_t CommonCLI::buildAdvertData(uint8_t node_type, uint8_t* app_data) {
196196
void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, char* reply) {
197197
if (memcmp(command, "reboot", 6) == 0) {
198198
_board->reboot(); // doesn't return
199+
} else if (memcmp(command, "clkreboot", 9) == 0) {
200+
// Reset clock
201+
getRTCClock()->setCurrentTime(1715770351); // 15 May 2024, 8:50pm
202+
_board->reboot(); // doesn't return
199203
} else if (memcmp(command, "advert", 6) == 0) {
200204
// send flood advert
201205
_callbacks->sendSelfAdvertisement(1500, true); // longer delay, give CLI response time to be sent first

0 commit comments

Comments
 (0)