mirror of https://github.com/ArduPilot/ardupilot
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()
|
||||
{
|
||||
int result;
|
||||
int16_t result;
|
||||
|
||||
result = ReadByte(); // High byte
|
||||
result = (result<<8) | ReadByte(); // Low byte
|
||||
|
|
Loading…
Reference in New Issue