Fix Zigbee reset pin

This commit is contained in:
Theo Arends 2020-07-05 12:35:54 +02:00
parent 299b9a7194
commit acee1e5686

View File

@ -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