Skip to content

Commit

Permalink
Made some adjustments to the data ready read timer disable functional…
Browse files Browse the repository at this point in the history
…ity to reduce potential for conflict when operating with a low data ready frequency
  • Loading branch information
ajn96 committed Aug 16, 2021
1 parent 68ea6d4 commit 52466c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/TopGUI_RegisterForm.vb
Expand Up @@ -75,6 +75,9 @@ Partial Class TopGUI
'disable DR / cont reads
pageReadTimer.Enabled = False
drReadTimer.Enabled = False
'stop timer which enables the DR read timer for slow data ready freq
drEnableTimer.Stop()
drEnableTimer.Dispose()
Else
pageReadTimer.Enabled = contRead.Checked
drReadTimer.Enabled = measureDr.Checked
Expand Down Expand Up @@ -273,6 +276,10 @@ Partial Class TopGUI
'Kill any running timers
pageReadTimer.Enabled = False
drReadTimer.Enabled = False
drEnableTimer.Enabled = False
drEnableTimer.Dispose()
pageReadTimer.Dispose()
drReadTimer.Dispose()
End Sub

Private Sub selectPage_SelectedIndexChanged(sender As Object, e As EventArgs) Handles selectPage.SelectedIndexChanged
Expand Down

0 comments on commit 52466c8

Please sign in to comment.