1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-03 05:02:40 +02:00

Silence onvif start/stop message when giving motor commands (#1899)

This commit is contained in:
Tsvi Mostovicz
2024-11-25 08:53:53 +02:00
committed by GitHub
parent cd802446ba
commit d682626716

View File

@@ -178,7 +178,7 @@ ir_cut(){
# use like: motor up 100
motor(){
ov=$(onvif_srvd status)
[ "${ov}" == "ON" ] && onvif_srvd off
[ "${ov}" == "ON" ] && onvif_srvd off >/dev/null 2>&1
if [ -z "$2" ]
then
@@ -215,7 +215,7 @@ motor(){
fi
;;
esac
[ "${ov}" == "ON" ] && onvif_srvd on
[ "${ov}" == "ON" ] && onvif_srvd on >/dev/null 2>&1
}
update_motor_pos(){