|
@@ -93,7 +93,7 @@ void profiler_bg()
|
|
|
int32_t delta = ticks - ProfilerBuffer.counter;
|
|
|
if(delta<0)
|
|
|
{
|
|
|
- delta+=72000;
|
|
|
+ delta+=1000;
|
|
|
}
|
|
|
ProfilerTime[0] += delta;
|
|
|
ProfilerBuffer.counter = ticks;
|
|
@@ -138,7 +138,7 @@ void profiler_start(uint8_t lv)
|
|
|
int32_t delta = ticks - ProfilerBuffer.counter;
|
|
|
if(delta<0)
|
|
|
{
|
|
|
- delta+=72000;
|
|
|
+ delta+=1000;
|
|
|
}
|
|
|
ProfilerTime[ProfilerStack[ProfilerSp - 1]] += delta;
|
|
|
ProfilerCounts[lv] += 1;
|
|
@@ -170,7 +170,7 @@ void profiler_end(uint8_t lv)
|
|
|
int32_t delta = ticks - ProfilerBuffer.counter;
|
|
|
if(delta<0)
|
|
|
{
|
|
|
- delta+=72000;
|
|
|
+ delta+=1000;
|
|
|
}
|
|
|
ProfilerTime[ProfilerStack[ProfilerSp - 1]] += delta;
|
|
|
ProfilerSp -= 1;
|