dataflash: type fixup for ReadInt()

This commit is contained in:
Andrew Tridgell 2011-11-08 15:46:08 +11:00
parent f80a08bf57
commit 3b52687342
1 changed files with 1 additions and 1 deletions

View File

@ -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