Code inspections

This commit is contained in:
2019-09-29 19:51:19 +01:00
parent 272fdb58d1
commit 0e0ea2d2b0
22 changed files with 195 additions and 160 deletions
+3 -2
View File
@@ -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");