mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use Create method for creating Device class.
This commit is contained in:
@@ -30,7 +30,6 @@ namespace Aaru.Tests.Devices;
|
||||
|
||||
using System;
|
||||
using Aaru.Console;
|
||||
using Aaru.Devices;
|
||||
using Aaru.Helpers;
|
||||
|
||||
static partial class MainClass
|
||||
@@ -40,7 +39,7 @@ static partial class MainClass
|
||||
AaruConsole.WriteLine("Going to open {0}. Press any key to continue...", devPath);
|
||||
Console.ReadKey();
|
||||
|
||||
var dev = new Device(devPath);
|
||||
var dev = Aaru.Devices.Device.Create(devPath);
|
||||
|
||||
while(true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user