Disable logging and add a check before stopping thread
This commit is contained in:
parent
153fc2e9ba
commit
f24d28812a
|
@ -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);
|
||||
|
|
|
@ -17,6 +17,7 @@ public abstract class OpModeWithAPI extends OpMode {
|
|||
}
|
||||
|
||||
public void stop() {
|
||||
api.thr.isRunning = false;
|
||||
if (api.useLogFile)
|
||||
api.thr.isRunning = false;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue