adapt to third-party hardware
parent
3eb604ebb8
commit
cdd59433c4
|
|
@ -329,8 +329,8 @@ APIEvent::Type Device::attemptToBeginCommunication() {
|
||||||
return getCommunicationNotEstablishedError();
|
return getCommunicationNotEstablishedError();
|
||||||
|
|
||||||
std::string currentSerial = getNeoDevice().serial;
|
std::string currentSerial = getNeoDevice().serial;
|
||||||
if(currentSerial != serial->deviceSerial)
|
// if(currentSerial != serial->deviceSerial)
|
||||||
return APIEvent::Type::IncorrectSerialNumber;
|
// return APIEvent::Type::IncorrectSerialNumber;
|
||||||
|
|
||||||
auto maybeVersions = com->getVersionsSync();
|
auto maybeVersions = com->getVersionsSync();
|
||||||
if(!maybeVersions)
|
if(!maybeVersions)
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ bool IDeviceSettings::refresh(bool ignoreChecksum) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rxLen < gsLen) {
|
if(rxLen <= gsLen) {
|
||||||
// We got less data, i.e. the firmware thinks the strucure is smaller than what
|
// We got less data, i.e. the firmware thinks the strucure is smaller than what
|
||||||
// was last saved. Usually this is due to a firmware downgrade. We'll ignore the
|
// was last saved. Usually this is due to a firmware downgrade. We'll ignore the
|
||||||
// checksum for now, because it will definitely be wrong.
|
// checksum for now, because it will definitely be wrong.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue