mirror of
https://github.com/eddyem/small_tel.git
synced 2026-10-01 06:10:29 +03:00
add "raw" commands
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user