fixed the endianness bug in checking the device firmware version