Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Evangelista committed Nov 15, 2018
1 parent 57c0380 commit 82270bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PwmOut rudder(p22);


int main(void){
int i; // a counter for for loop
int i=0; // a counter for for loop
uint64_t now; // for timing the loop to be 11 or 22ms

// setup
Expand All @@ -45,7 +45,7 @@ int main(void){
if (rx.valid){
// display on screen? may be too slow for 22 ms update rate
pc.printf("%d. mainsail %4d, rudder %4d\r\n",
i,
i++,
rx.pulsewidth[0], // DX9 channel 0 throttle
rx.pulsewidth[3]); // DX9 channel 3 rudder

Expand Down

0 comments on commit 82270bc

Please sign in to comment.