fix: incorrect binary operation
This commit is contained in:
1 parent
197eb8b117
commit
641a5478c1
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
description: ESP32 ESP-IDF component for PCF8574(A) 8-bit I/O expander
|
||||
url: https://github.com/aZholtikov/zh_pcf8574
|
||||
version: "2.8.1"
|
||||
version: "2.8.2"
|
||||
license: "Apache-2.0"
|
||||
maintainers:
|
||||
- "Alexey Zholtikov <alexey.zholtikov@yandex.ru>"
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
2.8.1
|
||||
2.8.2
|
||||
+1
-1
@@ -184,7 +184,7 @@ esp_err_t zh_pcf8574_write_gpio(zh_pcf8574_handle_t *handle, zh_pcf8574_gpio_num
|
||||
}
|
||||
else
|
||||
{
|
||||
ZH_ERROR_CHECK(_zh_pcf8574_write_register(handle, (handle->gpio_status ^ gpio_temp) | handle->gpio_work_mode) == ESP_OK, ESP_FAIL, NULL, "PCF8574 write GPIO failed.");
|
||||
ZH_ERROR_CHECK(_zh_pcf8574_write_register(handle, (handle->gpio_status & ~gpio_temp) | handle->gpio_work_mode) == ESP_OK, ESP_FAIL, NULL, "PCF8574 write GPIO failed.");
|
||||
}
|
||||
ZH_LOGI("PCF8574 write GPIO completed successfully.");
|
||||
return ESP_OK;
|
||||
|
||||
Reference in new issue
Block a user