mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps/hwtest] Proper MCU_SERIAL command
Change-Id: I485bd67fa464a541a89d2c1c878b41a3328bed88
This commit is contained in:
@@ -79,10 +79,11 @@ void command_ping(const char * input) {
|
||||
}
|
||||
|
||||
void command_mcu_serial(const char * input) {
|
||||
Ion::Console::writeLine("UNKNOWN");
|
||||
char response[11+24+1] = {'M', 'C', 'U', '_', 'S', 'E', 'R', 'I', 'A', 'L', '=', 0};
|
||||
strlcpy(response+11, Ion::serialNumber(), 25);
|
||||
Ion::Console::writeLine(response);
|
||||
}
|
||||
|
||||
|
||||
static inline int8_t hexChar(char c) {
|
||||
if (c >= '0' && c <= '9') {
|
||||
return (c - '0');
|
||||
|
||||
Reference in New Issue
Block a user