Skip to content

Commit

Permalink
improve application update rate
Browse files Browse the repository at this point in the history
  • Loading branch information
Iris-TheRainbow committed Jun 20, 2024
1 parent deabb8c commit b8f0f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions REVHubInterface/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ def on_connect_button_callback(self):
frame.grid(row=motorNumber, column=moduleNumber, sticky=(N, S, E, W))
self.Motor_packs.append(
dc_motor(frame, partial(self.speedMotorSlider, motorNumber=motorNumber, moduleNumber=moduleNumber),
partial(self.zeroMotorSpeed, motorNumber=motorNumber, moduleNumber=moduleNumber),
partial(self.speedMotorEntry, motorNumber=motorNumber, moduleNumber=moduleNumber),
partial(self.javaMotorEntry, motorNumber=motorNumber, moduleNumber=moduleNumber)))
self.Motor_packs[-1].Motor_pack.config(
text='Module: ' + str(moduleNumber) + ' Motors: ' + str(motorNumber))
Expand Down Expand Up @@ -1144,7 +1144,7 @@ def on_quit_button_callback(self):
def every_second(self):
for func in self.repetitiveFunctions:
func()
self.root.after(500, self.every_second)
self.root.after(250, self.every_second)

def joinThreads(self):
self.repetitiveFunctions = []
Expand Down

0 comments on commit b8f0f38

Please sign in to comment.