Skip to content

Commit

Permalink
Fix GUI Serial - ok
Browse files Browse the repository at this point in the history
git-svn-id: http://multiwii.googlecode.com/svn/trunk/MultiWiiConf_shared@888 02679b44-d973-9852-f2fa-63770883b36c
  • Loading branch information
trey.marc@gmail.com committed Jun 9, 2012
1 parent 7674868 commit ba8527e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions MultiWiiConf.pde
Expand Up @@ -472,7 +472,7 @@ void draw() {
altData.addVal(alt);headData.addVal(head);
debug1Data.addVal(debug1);debug2Data.addVal(debug2);debug3Data.addVal(debug3);debug4Data.addVal(debug4);
}
if ((time-time3)>20) {
if ((time-time3)>20 && ! toggleRead) {
sendRequestMSP(requestMSP(MSP_ATTITUDE));
time3=time;
}
Expand All @@ -484,7 +484,12 @@ void draw() {
if (toggleRead) {
toggleRead=false;
int[] requests = {MSP_BOXNAMES, MSP_PIDNAMES, MSP_RC_TUNING, MSP_PID, MSP_BOX, MSP_MISC };
sendRequestMSP(requestMSP(requests));
sendRequestMSP(requestMSP(MSP_BOXNAMES));
sendRequestMSP(requestMSP(MSP_PIDNAMES));
sendRequestMSP(requestMSP(MSP_RC_TUNING));
sendRequestMSP(requestMSP(MSP_PID));
sendRequestMSP(requestMSP(MSP_BOX));
sendRequestMSP(requestMSP(MSP_MISC));

buttonWRITE.setColorBackground(green_);
}
Expand Down

0 comments on commit ba8527e

Please sign in to comment.