From cb4e4ac07ac510b160c689bfdd48487574e72152 Mon Sep 17 00:00:00 2001 From: Treas Date: Mon, 3 Oct 2016 19:57:39 -0400 Subject: [PATCH] Fixed getActiveGroup() does no exists rgbwSetColorToWhite() called non-existent function getActiveGroup(). Updated to call proper function, getRgbwActiveGroup(). --- Milight.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Milight.php b/Milight.php index e194980..534a981 100644 --- a/Milight.php +++ b/Milight.php @@ -503,11 +503,11 @@ public function rgbwSetColorToBabyBlue() */ public function rgbwSetColorToWhite() { - if ($this->getActiveGroup() == 0) { + if ($this->getRgbwActiveGroup() == 0) { $this->rgbwAllSetToWhite(); return; } - $this->command('rgbwGroup'.strval($this->getActiveGroup()).'SetToWhite'); + $this->command('rgbwGroup'.strval($this->getRgbwActiveGroup()).'SetToWhite'); } public function rgbwSetColorToAqua()