Reticulum icon indicating copy to clipboard operation
Reticulum copied to clipboard

Fix --fw-version parameter not being used

Open jacobeva opened this issue 1 year ago • 2 comments

Title basically.

Not sure why this if statement got removed? I assume it was accidental.

Regardless, without this change running something like: rnodeconf -U --fw-version 1.71 --nocheck -u /dev/port would fail, with the complaint that the firmware version was not set in the command line arguments. Obviously this makes no sense and doesn't seem to be intended.

jacobeva avatar May 13 '24 21:05 jacobeva

~~There was some issues with using custom firmware versions at some point, and I think it got disabled there, or it was never properly finished. Can you confirm that it works correctly with custom versions now, for a repo that hosts older versions?~~

Ah, wait, was confused there for a second. This was also used for specifying offline install versions, when rnodeconf could not reach any online repositories, and you'd need to specify manually what version to use. It would then use that version from disk, if present.

I'll have to look at this in detail to see what is actually going on.

markqvist avatar May 17 '24 22:05 markqvist

Sorry, I don't really understand what you mean in the bit you've crossed out.

Ah, wait, was confused there for a second. This was also used for specifying offline install versions, when rnodeconf could not reach any online repositories, and you'd need to specify manually what version to use. It would then use that version from disk, if present.

Yes, this is exactly what I was doing, I was using rnodeconf with a zip file (with a generated hash) manually copied from the RNode_Firmware in order to test flashing my own firmware with the autoinstaller. I had to disable the online repo option to do this. Basically, the change you made would stop it checking the firmware version before throwing the error that it wasn't set (and it couldn't reach the repo online). I hope that makes sense!

jacobeva avatar May 18 '24 09:05 jacobeva

rnodeconf is going to be rewritten anyway

jacobeva avatar Sep 03 '24 21:09 jacobeva