EliasKotlyar / Xiaomi-Dafang-Hacks

4.19k stars 1k forks source link

IR LED control reversed #1047

Closed gigawatts closed 4 years ago

gigawatts commented 5 years ago

Wyze Cam v2 commit 4a0a25dc407162eec1604dc5455c66950ca42f39

Problem

The IR_led on/off function is reversed. When you turn it OFF via the web interface or via command line with: . /system/sdcard/scripts/common_functions.sh; ir_led off the IR LEDs turn ON, and vice versa.

Resolution

Swap the setgpio values (0 and 1) for the ON and OFF commands in /scripts/common_functions.sh and also swap the ON and OFF switches in the status case

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

gigawatts commented 5 years ago

Not stale, please fix

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

gigawatts commented 5 years ago

...

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

gigawatts commented 4 years ago

😴

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.