Forked para SNOCC
Fork of RA8875 by
Diff: RA8875.cpp
- Revision:
- 67:9f834f0ff97d
- Parent:
- 66:468a11f05580
- Child:
- 68:ab08efabfc88
diff -r 468a11f05580 -r 9f834f0ff97d RA8875.cpp --- a/RA8875.cpp Sun Aug 31 14:37:37 2014 +0000 +++ b/RA8875.cpp Sun Aug 31 14:47:59 2014 +0000 @@ -244,7 +244,6 @@ idlecounter = 0; } - void RA8875::RegisterPerformance(method_e method) { unsigned long elapsed = performance.read_us(); @@ -373,8 +372,10 @@ { int i = 20000/POLLWAITuSec; // 20 msec max - while (i-- && ReadStatus() & mask) + while (i-- && ReadStatus() & mask) { wait_us(POLLWAITuSec); + CountIdleTime(POLLWAITuSec); + } if (i) return true; else @@ -387,8 +388,10 @@ { int i = 20000/POLLWAITuSec; // 20 msec max - while (i-- && ReadCommand(reg) & mask) + while (i-- && ReadCommand(reg) & mask) { wait_us(POLLWAITuSec); + CountIdleTime(POLLWAITuSec); + } if (i) return true; else