Skip to content

Disable autoupload by default in PIO builds - #3545

Merged
pkendall64 merged 1 commit into
ExpressLRS:masterfrom
CapnBry:autoupload
Mar 26, 2026
Merged

pkendall64 merged 1 commit into
ExpressLRS:masterfrom
CapnBry:autoupload

Conversation

@CapnBry

@CapnBry CapnBry commented Feb 19, 2026

Copy link
Copy Markdown
Member

Disables the "auto upload" function of the config-append step of a build, now only performed if "autoupload" is set in the cache file.

Details

In #3449 we added the saving of the appended hardware config when you're doing a build, and it auto uploads that config if you do a PIO upload action without prompting. In practice now that we're using it, this is an opportunity to forget that you have to do a "clean" operation and upload the wrong hardware config by mistake 😞

The autoupload function can be re-enabled in the cache json, any value that evaluates to true in python works:

image

Any other options?

I'd love to have some easier way to toggle this, so I'm open to other ideas but I think it may be best to just make it a default-off option in the config for now. I didn't want to add a user_define for it because that seems wrong and forces a full rebuild if you change them.

Apologies to @mha1 for all the dead hardware needing reflashing!

@CapnBry CapnBry added enhancement 🪄 New feature or request V4.1 🍑 labels Feb 19, 2026
@CapnBry CapnBry changed the title Don't autoupload unless autoupload key to true in cache json Disable autoupload by default in PIO builds Feb 19, 2026
@pkendall64

Copy link
Copy Markdown
Collaborator

Maybe we could wait for a period of time at the prompt before continuing with the default? I think that would give us the best of both worlds.

@CapnBry

CapnBry commented Mar 26, 2026

Copy link
Copy Markdown
Member Author

Maybe we could wait for a period of time at the prompt before continuing with the default? I think that would give us the best of both worlds.

I considered this but input() is blocking so we'd have to spawn a cancellable thread to do the input and return the value and what if someone is looking at the list trying to find their target while this countdown is ticking (so we can't display the countdown because that will scroll the terminal back due to the new activity) and it just creates too much anxiety. You have to pick a high enough number to give you plenty of time to make a selection without rushing which then diminishes the benefit of having it do it automatically in a timely manner.

I think that's just adding too much complexity and things to go wrong for something that might not ever even be used.

The terminal buffers pressing enter once you hit upload so it's not a big deal to just hit enter, and if I get into a marathon build+uploading session, I can always just set the autoupload to 1.

@pkendall64
pkendall64 merged commit 86dae88 into ExpressLRS:master Mar 26, 2026
26 checks passed
@CapnBry
CapnBry deleted the autoupload branch April 3, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🪄 New feature or request V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants