Skip to content

Commit 7daf764

Browse files
committed
bug fix
1 parent f1813ed commit 7daf764

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/command_processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ static void IRAM_ATTR mlxTask(void* main_handle) {
109109
uint8_t error_count = 255;
110110
for (;;) {
111111
if (error_count >= 128) {
112+
_i2c_in.release();
112113
if (error_count == 128) { // 強制的にSTOPコンディションを送信する
113114
ESP_EARLY_LOGD("mlxTask", "I2C force stop");
114115
gpio_config_t io_conf;
@@ -131,7 +132,6 @@ static void IRAM_ATTR mlxTask(void* main_handle) {
131132
gpio_hi(PIN_IN_SDA);
132133
}
133134
}
134-
_i2c_in.release();
135135
// initialize sensor.
136136
_i2c_in.init(PORT_I2C, PIN_IN_SDA, PIN_IN_SCL);
137137
int retry = 16;

src/common_header.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
static constexpr const uint8_t firmware_ver_major = 0;
77
static constexpr const uint8_t firmware_ver_minor = 0;
8-
static constexpr const uint8_t firmware_ver_patch = 11;
8+
static constexpr const uint8_t firmware_ver_patch = 14;
99

1010
static constexpr uint8_t frame_width = 32;
1111
static constexpr uint8_t frame_height = 24;

0 commit comments

Comments
 (0)