Skip to content

Commit

Permalink
start perf counter after looptime adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Aug 13, 2023
1 parent 60bdd83 commit c50fb15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ __attribute__((__used__)) int main() {
looptime_reset();

while (1) {
perf_counter_start(PERF_COUNTER_TOTAL);

// updates looptime counters & runs auto detect
looptime_update();

perf_counter_start(PERF_COUNTER_TOTAL);

// read gyro and accelerometer data
perf_counter_start(PERF_COUNTER_GYRO);
sixaxis_read();
Expand Down

0 comments on commit c50fb15

Please sign in to comment.