add "raw" commands

This commit is contained in:
2026-09-29 09:48:45 +03:00
parent 06dd7d7059
commit 7f01b07561
10 changed files with 62 additions and 13 deletions

View File

@@ -689,3 +689,14 @@ bool mount_corrdata(weather_data_t *w){
bool mount_shutdown(){
return write_cmd(CMD_SHUTDOWN, true);
}
/**
* @brief mount_rawcmd - send raw command `cmd` to mount
* @param cmd - raw command
* @param ans (o) - answer text
* @param anslen - length of `ans` buffer
* @return false if failed
*/
bool mount_rawcmd(const char *cmd, char *ans, size_t anslen){
return send_cmd_resp(cmd, ans, anslen);
}