feat: Support for Flysky ST16 (#6071)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Co-authored-by: Peter Feerick <peter.feerick@gmail.com> Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: Malte Langermann <malte@langermann.net>
This commit is contained in:
co-authored by
raphaelcoeffic
Peter Feerick
philmoz
Malte Langermann
parent
94965c1d09
commit
f82c3dea8c
+2
-2
@@ -106,12 +106,12 @@ const char * getFirmwareVersion(const uint8_t* buffer)
|
||||
#endif
|
||||
}
|
||||
|
||||
for (int i = 0; i < 2024; i++) {
|
||||
for (int i = 0; i < 1024; i++) {
|
||||
if ((memcmp(buffer + i, "edgetx-", 7) == 0)
|
||||
|| memcmp(buffer + i, "opentx-", 7) == 0) {
|
||||
return (const char*)buffer + i;
|
||||
}
|
||||
}
|
||||
return "no version found";
|
||||
return nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user