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

shutdown instead of reboot #22

Open
queeek opened this issue Dec 27, 2020 · 2 comments
Open

shutdown instead of reboot #22

queeek opened this issue Dec 27, 2020 · 2 comments

Comments

@queeek
Copy link

queeek commented Dec 27, 2020

Instead of rebooting and telling the user the Pi can be powered off, a
os.system("sudo shutdown now")
should be done

Adeept_RaspTank/setup.py

Lines 146 to 148 in f4a9dab

print('The program in Raspberry Pi has been installed, disconnected and restarted. \nYou can now power off the Raspberry Pi to install the camera and driver board (Robot HAT). \nAfter turning on again, the Raspberry Pi will automatically run the program to set the servos port signal to turn the servos to the middle position, which is convenient for mechanical assembly.')
print('restarting...')
os.system("sudo reboot")

@rasptank
Copy link

rasptank commented Jul 4, 2021

It is the code for do shut down? Not rebooting ?

@queeek
Copy link
Author

queeek commented Jul 12, 2021

yes with
os.system("sudo shutdown now")
you shutdown the Pi.

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

No branches or pull requests

2 participants