This commit is contained in:
2024-07-09 22:15:53 -04:00
parent 404ccd2513
commit ae047545dc
4 changed files with 7 additions and 3 deletions

View File

@@ -1 +1 @@
ref: refs/heads/main 3b8741b172dc951e18509698dee938304bcf1523

View File

@@ -18,7 +18,7 @@ set(HEAD_HASH)
file(READ "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024) file(READ "C:/Users/alex/github/ESP-Nodes/ESP32-IDF_BMP280/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS) string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
set(GIT_DIR "C:/Users/alex/github/ESP-Nodes/.git") set(GIT_DIR "C:/Users/alex/esp/v5.2.2/esp-idf/.git")
# handle git-worktree # handle git-worktree
if(EXISTS "${GIT_DIR}/commondir") if(EXISTS "${GIT_DIR}/commondir")
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024) file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)

View File

@@ -1 +1 @@
8bfb1ebc084cfaa22d3e29da1a6c9d246901cfe8 3b8741b172dc951e18509698dee938304bcf1523

View File

@@ -185,6 +185,10 @@ void app_main(void)
for (int i = 0; i < len; i++) { for (int i = 0; i < len; i++) {
ESP_LOGI(TAG, "Device ID is: 0x%X", data[i]); ESP_LOGI(TAG, "Device ID is: 0x%X", data[i]);
//printf("0x%02x ", data[i]); //printf("0x%02x ", data[i]);
if (data[i] == 0x60)
ESP_LOGI(TAG, "BME-280");
if (data[i] == 0x58)
ESP_LOGI(TAG, "BMP-280");
} }
} else if (cmd_ret == ESP_ERR_TIMEOUT) { } else if (cmd_ret == ESP_ERR_TIMEOUT) {
ESP_LOGW(TAG, "Bus is busy"); ESP_LOGW(TAG, "Bus is busy");