chore(cpn): upgrade to Ubuntu 22.04 and Qt 6.9.0 (#5986)

Co-authored-by: elecpower <elecpower@users.noreply.github.com>
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Neil Horne
2025-07-23 14:04:19 +02:00
committed by GitHub
co-authored by elecpower raphaelcoeffic
parent 7264b28e62
commit 9e86a3ea84
117 changed files with 4221 additions and 5155 deletions
+3 -4
View File
@@ -72,14 +72,13 @@ void RadioData::fixModelFilenames()
QString RadioData::getNextModelFilename()
{
const bool hasSDCard = Boards::getCapability(getCurrentFirmware()->getBoard(), Board::HasSDCard);
char filename[sizeof(ModelData::filename)];
int index = 0;
int8_t index = 0;
bool found = true;
while (found) {
sprintf(filename, "model%d.%s", ++index, hasSDCard ? "yml" : "bin");
sprintf(filename, "model%d.yml", ++index);
found = false;
for (unsigned int i=0; i<models.size(); i++) {
for (unsigned int i = 0; i < models.size(); i++) {
if (strcmp(filename, models[i].filename) == 0) {
found = true;
break;