mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-31 16:52:10 +01:00
OP-1275 Fix pios_delay DiffuS
This commit is contained in:
parent
3c2300ffda
commit
212170bcb9
@ -164,7 +164,7 @@ uint32_t PIOS_DELAY_GetRaw()
|
|||||||
*/
|
*/
|
||||||
uint32_t PIOS_DELAY_DiffuS(uint32_t raw)
|
uint32_t PIOS_DELAY_DiffuS(uint32_t raw)
|
||||||
{
|
{
|
||||||
uint32_t diff = -raw;
|
uint32_t diff = PIOS_DELAY_GetRaw() - raw;
|
||||||
|
|
||||||
return diff;
|
return diff;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user