Skip to content

Commit

Permalink
Merge pull request EliasKotlyar#1584 from thmspl/patch-3
Browse files Browse the repository at this point in the history
Exposes the motor speed attribute in the api endpoint
  • Loading branch information
jmtatsch authored Sep 26, 2020
2 parents 1127052 + 95734d9 commit 406cf52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware_mod/www/cgi-bin/api.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
}
}
}"
Expand Down

0 comments on commit 406cf52

Please sign in to comment.