Disable logging and add a check before stopping thread

This commit is contained in:
Yash Karandikar 2022-02-24 17:48:07 -06:00
parent 153fc2e9ba
commit f24d28812a
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ public abstract class Gamepad extends OpModeWithMovement {
@Override
public void init() {
this.construct(true);
this.construct();
api.print("Status", "Initializing, please wait");
api.pause(1);

View file

@ -17,6 +17,7 @@ public abstract class OpModeWithAPI extends OpMode {
}
public void stop() {
api.thr.isRunning = false;
if (api.useLogFile)
api.thr.isRunning = false;
}
}