Skip to content

Commit

Permalink
Fix method names in test app
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes committed Mar 20, 2024
1 parent 3b1a2c9 commit 6c04fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions USB Test App WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ private void UploadFileInternalStorage_Click(object sender, RoutedEventArgs e)
// disable button
(sender as Button).IsEnabled = false;

var reply1 = (DataContext as MainViewModel).AvailableDevices[DeviceGrid.SelectedIndex].DebugEngine.AddFile(fileName, Encoding.UTF8.GetBytes(fileContent));
var reply1 = (DataContext as MainViewModel).AvailableDevices[DeviceGrid.SelectedIndex].DebugEngine.AddStorageFile(fileName, Encoding.UTF8.GetBytes(fileContent));
Debug.WriteLine($"File upload internal success: {reply1}");

// enable button
Expand All @@ -1127,7 +1127,7 @@ private void RemoveFileInternalStorage_Click(object sender, RoutedEventArgs e)
// disable button
(sender as Button).IsEnabled = false;

var reply1 = (DataContext as MainViewModel).AvailableDevices[DeviceGrid.SelectedIndex].DebugEngine.RemoveFile(fileName);
var reply1 = (DataContext as MainViewModel).AvailableDevices[DeviceGrid.SelectedIndex].DebugEngine.DeleteStorageFile(fileName);
Debug.WriteLine($"File upload internal success: {reply1}");

// enable button
Expand Down

0 comments on commit 6c04fe7

Please sign in to comment.