Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Jan 23, 2023
1 parent 6285d29 commit 6f84af3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Pages/BasicSensor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public partial class BasicSensor : UserControl
private static Smu RyzenAccess;
private static bool EnableDebug;
private static uint[] Args;
private static DispatcherTimer sensor = new DispatcherTimer();

public BasicSensor()
{
Expand All @@ -49,8 +50,7 @@ public BasicSensor()

updateSensor();

//set up timer for sensor update
DispatcherTimer sensor = new DispatcherTimer();
//set up timer for sensor
sensor.Interval = TimeSpan.FromSeconds(1);
sensor.Tick += SensorUpdate_Tick;
sensor.Start();
Expand All @@ -68,6 +68,8 @@ private void updateSensor()
{
try
{
if(!MainWindow.menu.ToLower().Contains("info")) sensor.Stop();

int highestPL = 0;
string PMT = string.Format("{0:x}", Addresses.PMTableVersion);
CoreLat.Visibility = Visibility.Collapsed;
Expand Down

0 comments on commit 6f84af3

Please sign in to comment.