1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-aq,v 1.1 2005/02/20 11:31:11 markd Exp $
--- kstars/kstars/indi/lx200_16.cpp.orig 2004-06-25 21:10:04.000000000 +1200
+++ kstars/kstars/indi/lx200_16.cpp
@@ -224,8 +224,7 @@ void LX200_16::ISNewSwitch (const char *
}
FanStatusSw.s = IPS_OK;
- strcpy(msg, index == 0 ? "Fan is ON" : "Fan is OFF");
- IDSetSwitch (&FanStatusSw, msg);
+ IDSetSwitch (&FanStatusSw, index == 0 ? "Fan is ON" : "Fan is OFF");
return;
}
@@ -240,7 +239,7 @@ void LX200_16::ISNewSwitch (const char *
index == 0 ? seekHomeAndSave() : seekHomeAndSet();
HomeSearchSw.s = IPS_BUSY;
- IDSetSwitch (&HomeSearchSw, msg);
+ IDSetSwitch (&HomeSearchSw, index == 0 ? "Seek Home and Save" : "Seek Home and Set");
return;
}
@@ -255,8 +254,7 @@ void LX200_16::ISNewSwitch (const char *
index == 0 ? seekHomeAndSave() : seekHomeAndSet();
FieldDeRotatorSw.s = IPS_OK;
- strcpy(msg, index == 0 ? "Field deRotator is ON" : "Field deRotator is OFF");
- IDSetSwitch (&FieldDeRotatorSw, msg);
+ IDSetSwitch (&FieldDeRotatorSw, index == 0 ? "Field deRotator is ON" : "Field deRotator is OFF");
return;
}
|