FreeRTOS type updates.

This commit is contained in:
Our Air Quality 2016-11-02 13:49:04 +11:00
parent e2e6f35288
commit 986ea38a15
53 changed files with 151 additions and 148 deletions

View file

@ -66,7 +66,7 @@ protected:
*/
void sleep(unsigned long ms)
{
vTaskDelay(ms / portTICK_RATE_MS);
vTaskDelay(ms / portTICK_PERIOD_MS);
}
/**
*
@ -74,7 +74,7 @@ protected:
*/
inline unsigned long millis()
{
return xTaskGetTickCount() * portTICK_RATE_MS;
return xTaskGetTickCount() * portTICK_PERIOD_MS;
}
private: