mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-03 13:12:44 +02:00
Exposes the motor speed attribute in the api endpoint
This commit is contained in:
@@ -153,7 +153,8 @@ if [ -n "$F_action" ]; then
|
||||
},
|
||||
\"motor\": {
|
||||
\"x\": $($MOTOR -d s | sed -n '1 p' | awk '{print $2}'),
|
||||
\"y\": $($MOTOR -d s | sed -n '2 p' | awk '{print $2}')
|
||||
\"y\": $($MOTOR -d s | sed -n '2 p' | awk '{print $2}'),
|
||||
\"speed\": $($MOTOR -d s | sed -n '3 p' | awk '{print $2}')
|
||||
}
|
||||
}
|
||||
}"
|
||||
|
Reference in New Issue
Block a user