mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
Spinner: wait for UI to start (#20279)
* Impose a max rate for updating spinner progress
* fix import
* Show spinner until offroad is started
* no need for time
* Fix ROOT_DIR
* Fix fb include
* fix relative path
* don't touch these files
* Close spinner after all procs have started
* don't touch file
* Move up
* Revert changes to spinner, and only sleep on final progress update
* add this back
* revert time
* test sending 100
* test sending 100
* revert makefile changes
* rm 2nd 100% update
* pass spinner to thread function
* pass ignore list
* Default to None
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a3556410de
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ class Spinner():
|
||||
pass
|
||||
|
||||
def update_progress(self, cur: int, total: int):
|
||||
self.update(str(int(100 * cur / total)))
|
||||
self.update(str(round(100 * cur / total)))
|
||||
|
||||
def close(self):
|
||||
if self.spinner_proc is not None:
|
||||
|
||||
Reference in New Issue
Block a user