debug
This commit is contained in:
@ -200,10 +200,15 @@ class rdc_store extends hook
|
||||
{
|
||||
$this->setTo($tmpStore, AUTO);
|
||||
}*/
|
||||
if ($moving = "STOP")
|
||||
logger(DEBUG, "CASE: vibration:" . bool2string($value), __FILE__ . ":" . __LINE__);
|
||||
if ($moving == "STOP")
|
||||
{
|
||||
$this->maxLevel -= 20;
|
||||
}else
|
||||
{
|
||||
logger(DEBUG, "Store is moving so maxLevel not changed " . $moving, __FILE__ . ":" . __LINE__);
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -212,23 +217,10 @@ class rdc_store extends hook
|
||||
$this->maxLevel = 0;
|
||||
}
|
||||
logger(DEBUG, "maxLevel = " . $this->maxLevel . ' result => $r = ' . $r, __FILE__ . ":" . __LINE__);
|
||||
if ($this->storeLevel > $this->maxLevel)
|
||||
if ($store2level !== false) //$store2level = false then no change on store position
|
||||
{
|
||||
$this->setTo($this->maxLevel, AUTO);
|
||||
}elseif ($store2level !== false) //$store2level = false then no change on store position
|
||||
{
|
||||
if ( $store2level > $this->maxLevel )
|
||||
{
|
||||
logger(DEBUG, "store2level > maxLevel", __FILE__ . ":" . __LINE__);
|
||||
$this->setTo($this->maxLevel, AUTO);
|
||||
}else
|
||||
{
|
||||
logger(DEBUG, "store2level <= maxLevel", __FILE__ . ":" . __LINE__);
|
||||
$this->setTo($store2level, AUTO);
|
||||
}
|
||||
}else
|
||||
{
|
||||
logger(DEBUG, _("Store is Moving ") . $moving, __FILE__ . ":" . __LINE__);
|
||||
logger(DEBUG, "setting stor 2 store2level", __FILE__ . ":" . __LINE__);
|
||||
$this->setTo($store2level, AUTO);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -236,15 +228,14 @@ class rdc_store extends hook
|
||||
private function setTo($level, $method)
|
||||
{
|
||||
logger(DEBUG, "function 'set' to level : " . $level, __FILE__ . ":" . __LINE__);
|
||||
if ($level <= 100)
|
||||
if ($level > $this->maxLevel)
|
||||
{
|
||||
logger(DEBUG, "Open store :" . $level, __FILE__ . ":" . __LINE__);
|
||||
$level = $this->maxLevel;
|
||||
}elseif ($level <= 100)
|
||||
{
|
||||
logger(DEBUG, "Setting store position to:" . $level, __FILE__ . ":" . __LINE__);
|
||||
$this->send($level, $method);
|
||||
}//else
|
||||
/*{
|
||||
logger(DEBUG, "store is already at level" . $this->storeLevel . " so < at " . $level, __FILE__ . ":" . __LINE__);
|
||||
}*/
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private function close ($reason)
|
||||
|
Reference in New Issue
Block a user