mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-12 11:27:43 +00:00
getres cmd (#2671)
This commit is contained in:
@@ -1375,6 +1375,13 @@ static void cmd_setfreq(BaseSequentialStream* chp, int argc, char* argv[]) {
|
|||||||
chprintf(chp, "ok\r\n");
|
chprintf(chp, "ok\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void cmd_getres(BaseSequentialStream* chp, int argc, char* argv[]) {
|
||||||
|
(void)argc;
|
||||||
|
(void)argv;
|
||||||
|
std::string res = to_string_dec_uint(screen_width) + "x" + to_string_dec_uint(screen_height) + "\r\nok\r\n";
|
||||||
|
chprintf(chp, res.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
static const ShellCommand commands[] = {
|
static const ShellCommand commands[] = {
|
||||||
{"reboot", cmd_reboot},
|
{"reboot", cmd_reboot},
|
||||||
{"dfu", cmd_dfu},
|
{"dfu", cmd_dfu},
|
||||||
@@ -1410,6 +1417,7 @@ static const ShellCommand commands[] = {
|
|||||||
{"sendpocsag", cmd_sendpocsag},
|
{"sendpocsag", cmd_sendpocsag},
|
||||||
{"asyncmsg", cmd_asyncmsg},
|
{"asyncmsg", cmd_asyncmsg},
|
||||||
{"setfreq", cmd_setfreq},
|
{"setfreq", cmd_setfreq},
|
||||||
|
{"getres", cmd_getres},
|
||||||
{NULL, NULL}};
|
{NULL, NULL}};
|
||||||
|
|
||||||
static const ShellConfig shell_cfg1 = {
|
static const ShellConfig shell_cfg1 = {
|
||||||
|
Reference in New Issue
Block a user