Fix delayms_power to do proper timecounting

This commit is contained in:
Stefan `Sec` Zehl 2011-07-26 01:04:34 +02:00
parent bb178629a2
commit 7eba1c5240
1 changed files with 3 additions and 3 deletions

View File

@ -41,12 +41,12 @@ void delayms_queue(uint32_t ms){
};
void delayms_power(uint32_t ms){
ms+=_timectr;
do {
ms-=10;
#ifdef ARM
__asm volatile ("WFI");
__asm volatile ("WFI");
#endif
} while(ms>10);
} while (ms >_timectr);
};
int push_queue(void (*new)(void)){