Skip to content

Commit bff4b83

Browse files
committed
[fix]Disp. não muda brilho com nome custom
1 parent 94a3515 commit bff4b83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

views/MainMenu.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ const MainMenu = (props) => {
200200
ToastAndroid.show("Conectado", ToastAndroid.SHORT)
201201

202202
//Prepare the device accordingly
203-
if (targetDevice.name === "RqBleLight") {
203+
//TODO: well, not depending on device name sounds like a great start...
204+
if (targetDevice.type === "LAMP") {
204205
//Support FLC A67 Bluetooth Smart lamp
205206
//Authenticate
206207
BleDrv.writeChar([0x72, 0x22, 0x9a, 0xbb, 0xa0], "00005251-0000-1000-8000-00805f9b34fb", "00002506-0000-1000-8000-00805f9b34fb")

0 commit comments

Comments
 (0)