Browse Source

Merge pull request #859 from liamcottle/feature/board-cli-command

Add CLI Command: board
pull/863/head
ripplebiz 8 months ago
committed by GitHub
parent
commit
b82f5ea7cd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/helpers/CommonCLI.cpp

2
src/helpers/CommonCLI.cpp

@ -399,6 +399,8 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
sprintf(reply, "File system erase: %s", s ? "OK" : "Err");
} else if (memcmp(command, "ver", 3) == 0) {
sprintf(reply, "%s (Build: %s)", _callbacks->getFirmwareVer(), _callbacks->getBuildDate());
} else if (memcmp(command, "board", 5) == 0) {
sprintf(reply, "%s", _board->getManufacturerName());
} else if (memcmp(command, "log start", 9) == 0) {
_callbacks->setLoggingOn(true);
strcpy(reply, " logging on");

Loading…
Cancel
Save