From 48ec64cddbc18189c1153cff6b3d4644794363b1 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 7 Oct 2019 11:56:20 +0200 Subject: [PATCH] Fix My92x1 driver Fix My92x1 driver --- sonoff/xlgt_02_my92x1.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sonoff/xlgt_02_my92x1.ino b/sonoff/xlgt_02_my92x1.ino index ea10bd722..551249a01 100644 --- a/sonoff/xlgt_02_my92x1.ino +++ b/sonoff/xlgt_02_my92x1.ino @@ -124,8 +124,6 @@ void My92x1ModuleSelected(void) digitalWrite(My92x1.pdi_pin, LOW); digitalWrite(My92x1.pdcki_pin, LOW); - LightMy92x1Init(); - My92x1.model = 2; light_type = LT_RGBW; // RGBW (2 chips) as used in Lohas if (AILIGHT == my_module_type) { // RGBW (1 chip) as used in Ailight @@ -136,6 +134,9 @@ void My92x1ModuleSelected(void) My92x1.model = 1; light_type = LT_RGBWC; } + + LightMy92x1Init(); + light_flg = XLGT_02; AddLog_P2(LOG_LEVEL_DEBUG, PSTR("DBG: MY29x1 Found")); }