dataflash: type fixup for ReadInt()

This commit is contained in:
Andrew Tridgell 2011-11-08 15:46:08 +11:00
parent c3d5d92a71
commit 0e447b12a2

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