Code inspections
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#define UseChooser
|
||||
|
||||
using System;
|
||||
using ASCOM.DriverAccess;
|
||||
|
||||
namespace ASCOM.Meade.net
|
||||
{
|
||||
@@ -19,11 +20,11 @@ namespace ASCOM.Meade.net
|
||||
// Uncomment the code that's required
|
||||
#if UseChooser
|
||||
// choose the device
|
||||
string id = DriverAccess.Telescope.Choose("ASCOM.MeadeGeneric.Telescope");
|
||||
string id = Telescope.Choose("ASCOM.MeadeGeneric.Telescope");
|
||||
if (string.IsNullOrEmpty(id))
|
||||
return;
|
||||
// create this device
|
||||
DriverAccess.Telescope device = new DriverAccess.Telescope(id);
|
||||
Telescope device = new Telescope(id);
|
||||
#else
|
||||
// this can be replaced by this code, it avoids the chooser and creates the driver class directly.
|
||||
ASCOM.DriverAccess.Telescope device = new ASCOM.DriverAccess.Telescope("ASCOM.Meade.net.Telescope");
|
||||
|
||||
Reference in New Issue
Block a user