Restore compact init progress; route Display Reboot-Fake and dialog statuses into existing progress/status area#84
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
init_progress_text_labelverschob das Layout und zeigte Init-Details außerhalb des vorhandenen Fortschritts-/Statusbereichs, was nicht gewünscht ist.Alle bekannten Register lesen) nutzt in der Praxis den Reboot-Fake-Pfad und dieser muss im bestehenden Fortschrittsbalken sichtbar werden, inklusive Busy-/Versuchs-/Timeout-Zuständen.Description
self.init_progress_text_labelund die zugehörigen Layoutänderungen, so dass die Init-Zeile wieder kompakt bleibt nebeninit_read_btnundinit_progress_bar.init_progress_bar.setFormat(...)(via_set_init_progress_text) und hält Busy-Zustände mitsetRange(0,0), statt ein neues Label zu benutzen._display_reboot_progress/_display_reboot_finishhinzu und bindet den Display-Modbus Reboot-Fake-Pfad (5112 / 0BC3 / upload) an diese Funktionen, sodass Status wieDisplay: Reboot-Fake startet ...,Display: Versuch 1/3,Display: 0BC3=0x8000 setzen ...,Display: warte auf Parameterpakete ...,Display: Paket 1001 empfangen,Display: fertigundDisplay: Timeoutim vorhandenen Balken erscheinen.display_fake_reboot_statein_init_read_progress_countsund_update_init_read_button_stateberücksichtigt wird, damit der Init-Button korrekt blockiert/freigegeben wird und wiederholtes Klicken nicht hängen bleibt.WPControlDialogundATCompensationDialogum ein kleinesstatus_labelsowieset_write_status,show_read_successundshow_read_timeoutund setzt lesbare Texte beim Lesen/Schreiben (z. B.Lese WP-Steuerung ...,WP-Steuerung Schreiben gesendet.).Bereit.zurückgesetzt werden.Testing
python -m compileall .wurde erfolgreich ausgeführt and es gab keine Syntax-Fehler.PYTHONPATH=. pytestwurde ausgeführt: 16 Tests bestanden, 2 Tests wurden übersprungen.git diff --check/ Kompilierung) wurde ausgeführt ohne neue Warnungen in den geänderten Dateien.Codex Task