1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

OP-1275 Fix pios_delay DiffuS

This commit is contained in:
Alessio Morale 2014-06-26 19:37:26 +02:00
parent 3c2300ffda
commit 212170bcb9

View File

@ -164,7 +164,7 @@ uint32_t PIOS_DELAY_GetRaw()
*/
uint32_t PIOS_DELAY_DiffuS(uint32_t raw)
{
uint32_t diff = -raw;
uint32_t diff = PIOS_DELAY_GetRaw() - raw;
return diff;
}