mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 13:52:15 +01:00
fix: review fixes for the restore fix
- A restore of the repeaters alone saves them before the reboot, instead of leaving that to somfy.loop(). - e2e: a refused restore leaves no upload behind, tested on its own. - e2e: auth() sits next to upload(), whose file part is now file=. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3d45ba59c1
commit
d968f7e70c
3 changed files with 25 additions and 13 deletions
|
|
@ -608,7 +608,9 @@ bool ShadeConfigFile::restoreFile(SomfyShadeController *s, const char *filename,
|
|||
else {
|
||||
this->file.seek(this->file.position() + this->header.netRecordSize, SeekSet);
|
||||
}
|
||||
if(opts.shades) s->commit();
|
||||
// The repeaters are saved in shades.cfg too. Left to somfy.loop(), they
|
||||
// race the reboot.
|
||||
if(opts.shades || opts.repeaters) s->commit();
|
||||
if(opts.transceiver)
|
||||
{
|
||||
// Read into a copy so the radio task never transmits on a half restored config.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue