Skip to content

fix motor on off issue on reset#19

Merged
arghyabi merged 1 commit into
masterfrom
fix_small_bug_for_motor
Oct 8, 2025
Merged

fix motor on off issue on reset#19
arghyabi merged 1 commit into
masterfrom
fix_small_bug_for_motor

Conversation

@arghyabi
Copy link
Copy Markdown
Owner

@arghyabi arghyabi commented Oct 8, 2025

No description provided.

Signed-off-by: Arghya Biswas <arghya@ialoy.com>
@arghyabi arghyabi requested a review from Copilot October 8, 2025 17:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a motor control issue that occurs during system reset, ensuring the motor is properly restarted after a reset operation. The fix introduces state tracking to prevent LCD display updates during completed cycles and restores motor operation after reset.

  • Adds countComplete flag to track when counting cycles are finished
  • Fixes motor control to turn motor back on after reset operations
  • Updates pin assignments for various GPIO components

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
config.yaml Updates application version from 1.9.1.1017 to 1.9.2.1018
Script/singleSwitch.py Adds countComplete flag, conditionalizes LCD updates, and restores motor control on reset
Script/pinDescription.py Updates GPIO pin assignments for LEDs, reset switch, and other components
Script/doubleSwitch.py Mirrors singleSwitch.py changes with countComplete flag and motor control fix

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread Script/singleSwitch.py
gpio.digitalWrite(MOTOR_ON_OFF_PIN, LOW)
setMotorControlStatus(LOW)
lcd.write("Count Finished!", row = ROW_NO_3, padding = True)
lcd.write("Count Finished!", row = ROW_NO_2, padding = True)
Copy link

Copilot AI Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'Count Finished!' message is now displayed on ROW_NO_2, which conflicts with position status messages that are also displayed on ROW_NO_2. This will overwrite position information and could confuse users about the current state.

Suggested change
lcd.write("Count Finished!", row = ROW_NO_2, padding = True)
lcd.write("Count Finished!", row = ROW_NO_3, padding = True)

Copilot uses AI. Check for mistakes.
Comment thread Script/doubleSwitch.py
gpio.digitalWrite(MOTOR_ON_OFF_PIN, LOW)
setMotorControlStatus(LOW)
lcd.write("Count Finished!", row = ROW_NO_3, padding = True)
lcd.write("Count Finished!", row = ROW_NO_2, padding = True)
Copy link

Copilot AI Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'Count Finished!' message is now displayed on ROW_NO_2, which conflicts with position status messages that are also displayed on ROW_NO_2. This will overwrite position information and could confuse users about the current state.

Suggested change
lcd.write("Count Finished!", row = ROW_NO_2, padding = True)
lcd.write("Count Finished!", row = ROW_NO_4, padding = True)

Copilot uses AI. Check for mistakes.
@arghyabi arghyabi merged commit 526ca7f into master Oct 8, 2025
1 check passed
@arghyabi arghyabi deleted the fix_small_bug_for_motor branch October 8, 2025 17:39
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