Skip to content

Commit 0dce213

Browse files
committed
make the update more reasonable
1 parent e5c4e92 commit 0dce213

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/main/java/com/commonwealthrobotics/TimelineManager.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public void onWorkplaneChange(TransformNR newWP) {
4141

4242
@Override
4343
public void onUpdate(List<CSG> currentState, ICaDoodleOpperation source, CaDoodleFile file) {
44-
if (init)
45-
update(false);
44+
// if (init)
45+
// update(false);
4646
}
4747

4848
@Override
@@ -93,8 +93,8 @@ public void update(boolean clear) {
9393
e.printStackTrace();
9494
return;
9595
}
96-
System.out.println("Start Waiting for timeline to finish");
97-
new Exception().printStackTrace();
96+
//System.out.println("Start Waiting for timeline to finish");
97+
//new Exception().printStackTrace();
9898
}
9999
updating = true;
100100

@@ -157,15 +157,15 @@ public void update(boolean clear) {
157157
else
158158
updating = false;
159159
});
160-
while (updating) {
161-
try {
162-
Thread.sleep(16);
163-
} catch (InterruptedException e) {
164-
// TODO Auto-generated catch block
165-
e.printStackTrace();
166-
return;
167-
}
168-
}
160+
// while (updating) {
161+
// try {
162+
// Thread.sleep(16);
163+
// } catch (InterruptedException e) {
164+
// // TODO Auto-generated catch block
165+
// e.printStackTrace();
166+
// return;
167+
// }
168+
// }
169169
}
170170

171171
public void clear() {

0 commit comments

Comments
 (0)