@@ -82,6 +82,9 @@ const _tRFLinkStringIntHelper rfswitchcommands[] =
82
82
{ " ALLOFF" , gswitch_sGroupOff },
83
83
{ " DIM" , gswitch_sDim },
84
84
{ " BRIGHT" , gswitch_sBright },
85
+ { " UP" , blinds_sOpen },
86
+ { " DOWN" , blinds_sClose },
87
+ { " STOP" , blinds_sStop },
85
88
{ " " , -1 }
86
89
};
87
90
@@ -256,13 +259,13 @@ bool CRFLinkBase::SendSwitchInt(const int ID, const int switchunit, const int Ba
256
259
257
260
int svalue=level;
258
261
if (cmnd==-1 ) {
259
- if (switchcmd.compare (0 , 9 , " SETLEVEL=" ) ){
262
+ if (switchcmd.compare (0 , 9 , " SETLEVEL=" ) == 0 ){
260
263
cmnd=gswitch_sSetLevel;
261
264
std::string str2 = switchcmd.substr (10 );
262
265
svalue=atoi (str2.c_str ());
263
- // _log.Log(LOG_STATUS, "RFLink: %d level: %d", cmnd, svalue);
266
+ _log.Log (LOG_STATUS, " RFLink: %d level: %d" , cmnd, svalue);
264
267
}
265
- }
268
+ }
266
269
267
270
if (cmnd==-1 )
268
271
{
@@ -482,13 +485,13 @@ bool CRFLinkBase::ParseLine(const std::string &sLine)
482
485
{
483
486
bHaveWindSpeed = true ;
484
487
iTemp = RFLinkGetHexStringValue (results[ii]);
485
- windspeed = float (iTemp) * 0 .0277778f ; // convert to m/s
488
+ windspeed = ( float (iTemp) * 0 .0277778f )/ 10 ; // convert to m/s
486
489
}
487
490
else if (results[ii].find (" WINGS" ) != std::string::npos)
488
491
{
489
492
bHaveWindGust = true ;
490
493
iTemp = RFLinkGetHexStringValue (results[ii]);
491
- windgust = float (iTemp) * 0 .0277778f ; // convert to m/s
494
+ windgust = ( float (iTemp) * 0 .0277778f )/ 10 ; // convert to m/s
492
495
}
493
496
else if (results[ii].find (" WINTMP" ) != std::string::npos)
494
497
{
0 commit comments