mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-08 19:36:31 +00:00
Fix Zigbee reset pin
This commit is contained in:
parent
299b9a7194
commit
acee1e5686
@ -1030,7 +1030,7 @@ int32_t EZ_IncomingMessage(int32_t res, const class SBuffer &buf) {
|
|||||||
// value = 1 : release the reset pin, restart
|
// value = 1 : release the reset pin, restart
|
||||||
int32_t EZ_Reset_Device(uint8_t value) {
|
int32_t EZ_Reset_Device(uint8_t value) {
|
||||||
// we use Led4i to drive the reset pin. Since it is reverted we need to pass 1 to start reset, and 0 to release reset
|
// we use Led4i to drive the reset pin. Since it is reverted we need to pass 1 to start reset, and 0 to release reset
|
||||||
if (PinUsed(GPIO_LED4, ZIGBEE_EZSP_RESET_LED - 1)) {
|
if (PinUsed(GPIO_LED1, ZIGBEE_EZSP_RESET_LED - 1)) {
|
||||||
SetLedPowerIdx(ZIGBEE_EZSP_RESET_LED - 1, value ? 0 : 1);
|
SetLedPowerIdx(ZIGBEE_EZSP_RESET_LED - 1, value ? 0 : 1);
|
||||||
} else {
|
} else {
|
||||||
// no GPIO so we use software Reset instead
|
// no GPIO so we use software Reset instead
|
||||||
|
Loading…
x
Reference in New Issue
Block a user