Repository navigation
Disable autoupload by default in PIO builds - #3545
Conversation
|
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. |
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:
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!