Charles Young's development fork. Going forward I only want to push mature code to main repository.
Fork of GEO_COUNTER_L432KC by
Diff: main.cpp
- Revision:
- 69:b9060324f125
- Parent:
- 68:c2e71a6583dd
- Child:
- 70:a07ab0091d5a
--- a/main.cpp Sun Sep 09 10:26:47 2018 -0700 +++ b/main.cpp Sun Sep 09 12:33:14 2018 -0700 @@ -142,7 +142,11 @@ // main loop does nothing as all activities are interrupt driven while(1) { - // dance (or drink a beer) + // Manage user I/O outside Ticker interrupt for accuracy + wait_us(TickerPeriod); + if (TickerPeriodCount == 0) + UpdateOutput(); + UpdateInput(); } } @@ -186,9 +190,9 @@ TickerPeriodCount = 0; - UpdateOutput(); + // UpdateOutput(); } - UpdateInput(); + // UpdateInput(); } void UpdateOutput()