mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 10:58:30 -04:00
dataflash: type fixup for ReadInt()
This commit is contained in:
parent
f80a08bf57
commit
3b52687342
@ -235,7 +235,7 @@ byte DataFlash_Class::ReadByte()
|
|||||||
|
|
||||||
int16_t DataFlash_Class::ReadInt()
|
int16_t DataFlash_Class::ReadInt()
|
||||||
{
|
{
|
||||||
int result;
|
int16_t result;
|
||||||
|
|
||||||
result = ReadByte(); // High byte
|
result = ReadByte(); // High byte
|
||||||
result = (result<<8) | ReadByte(); // Low byte
|
result = (result<<8) | ReadByte(); // Low byte
|
||||||
|
Loading…
Reference in New Issue
Block a user