Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes & Code Improvements #21

Merged
merged 5 commits into from
Nov 28, 2024
Merged

Conversation

Martinski4GitHub
Copy link
Contributor

@Martinski4GitHub Martinski4GitHub commented Nov 4, 2024

  1. Modified code to ignore ALL character key presses during the initial "Boot Sequence" loop.

  2. Modified code to ignore all INVALID character key presses within the main loop.

  3. Added code to avoid updating the timer prematurely within the initial & main loops due to repeatedly fast key presses.

  4. Modified code to avoid redisplaying the top "Options Menu" unnecessarily too often and resetting the timer loop due to repeatedly fast key presses.

  5. Modified code to get elapsed time percentage values with 1 decimal place (e.g. 0.5%).
    This allows non-integer values to be displayed for percentages of the elapsed time.

  6. Modified the top "Operations Menu" section with the title for the "Setup Configuration Menu" to highlight "M" as the key press to launch the Setup Menu instead of the "S" key press which was in conflict with the "S" required to show the "Operations Menu" section.

  7. Fixed menu option to set "Timer Interval (seconds)" values because it was accepting any user input (e.g. "0", "X") with very little validation and there was no lower-bound & upper-bound value checking.
    For example, inputs like "0" && "X" were accepted leading to runtime errors being generated.

  8. Added a toggle switch to pause/resume the timer cycle within the main loop.
    Pressing the character 'X' key (upper-case X only) will toggle the timer to pause/resume. While in the paused state, all character key presses are ignored except for the toggle 'X' key to resume the timer.

  9. Various other coding improvements & fine-tuning.

1) Modified code to ignore ALL key presses during the initial "Boot Sequence" loop.

2) Modified code to ignore INVALID key presses within the main loop.

3) Added code to avoid updating the timer prematurely within the initial & main loops due to repeatedly fast key presses.

4) Modified code to avoid redisplaying the top "Options Menu" unnecessarily too often
   and resetting the timer loop due to repeatedly fast key presses.

5) Modified code to get elapsed time percentage values with 1 decimal place (e.g. 0.5%)
   This allows displaying non-integer values for percentages of the elapsed time.

6) Modified top "Operations Menu" section with title for the "Setup Configuration Menu"
   to highlight "M" as the key press to launch the Setup Menu instead of "S" key press which
   was in conflict with the "S" required to *show* the "Operations Menu" section.

7) Fixed menu option to set "Timer Interval (seconds)" values because it was accepting any user input (e.g. "0", "X") with very little validation and there was no lower-bound & upper-bound value checking.
   For example, inputs like "0" && "X" were accepted leading to runtime errors being generated.

8) Various other coding improvements & fine-tuning.
Fine-tuning code.
Fine-tuning code around "Timer Reset" as a new "Next" or "Previous" page data is calculated and displayed.
Added a toggle switch to pause/resume the timer cycle within the main loop. Pressing the 'X' key (upper-case X only) will toggle the pause/resume state. While in a paused state, all character key presses are ignored except for the toggle 'X' key to resume the timer cycle.
@ViktorJp ViktorJp merged commit 61961d3 into ViktorJp:develop Nov 28, 2024
1 check passed
@ViktorJp
Copy link
Owner

Thanks for your work making this script even better, @Martinski4GitHub! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants