Skip to content

Commit 3ac548b

Browse files
committed
Restore CI Builds
1 parent 549172e commit 3ac548b

File tree

9 files changed

+18
-11
lines changed

9 files changed

+18
-11
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
[submodule "components/esp_i2c_helper"]
2323
path = components/esp_i2c_helper
2424
url = https://github.com/tuupola/esp_i2c_helper.git
25+
[submodule "components/esp-rainmaker"]
26+
path = components/esp-rainmaker
27+
url = https://github.com/espressif/esp-rainmaker.git

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ install:
2121
# Get required packages - already done above, see addons: apt: packages:
2222
# - sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
2323
# Prepare directory for the toolchain
24+
- python3 -m pip || wget -qO- https://bootstrap.pypa.io/pip/3.5/get-pip.py | python3
2425
- mkdir -p ~/esp
2526
- cd ~/esp
2627
# Get ESP-IDF from github
2728
- git clone --recursive https://github.com/espressif/esp-idf.git
2829
- cd esp-idf
29-
- git checkout release/v4.0
30+
- git checkout cf457d41
3031
- git submodule update --init --recursive
3132
- export IDF_PATH=~/esp/esp-idf
3233
- ./install.sh
@@ -55,7 +56,5 @@ script:
5556
# Update configuration so that kconfig doesn't start interactive mode
5657
- mkdir build
5758
- cd build
58-
- cmake ../
59-
- make -j 8
60-
- cmake -DBOARD=M5STACK ../
59+
- cmake -DBOARD=M5STACKCORE2 ../
6160
- make -j 8

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ list(APPEND compile_definitions "ARDUINO=202000")
99
# Ignore warning in Azure IoT Library in esp32 Arduino
1010
# pending PR: https://github.com/VSChina/ESP32_AzureIoT_Arduino/pull/15
1111
list(APPEND compile_options "-Wno-maybe-uninitialized")
12-
list(APPEND EXTRA_COMPONENT_DIRS components/lvgl_esp32_drivers components/lvgl_esp32_drivers/lvgl_touch components/lvgl_esp32_drivers/lvgl_tft)
12+
list(APPEND EXTRA_COMPONENT_DIRS components/esp-rainmaker/components/ components/lvgl_esp32_drivers components/lvgl_esp32_drivers/lvgl_touch components/lvgl_esp32_drivers/lvgl_tft)
1313

1414

1515
project(homepoint)

components/arduino-esp32

Submodule arduino-esp32 updated 7005 files

components/esp-rainmaker

Submodule esp-rainmaker added at f1b82c7

components/esp_littlefs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit b58f00ce22cf796925b64fcaeff3896fb8d265df

main/fs/spiffs_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void spiffs_drv_init()
136136
drv.seek_cb = my_seek_cb; /*Callback to seek in a file (Move cursor) */
137137
drv.tell_cb = my_tell_cb; /*Callback to tell the cursor position */
138138
drv.size_cb = my_size_cb;
139-
ESP_LOGE(TAG, "FS init");
139+
ESP_LOGE(TAG, "FS init");
140140
lv_fs_drv_register(&drv); /*Finally register the drive*/
141-
ESP_LOGE(TAG, "FS done");
141+
ESP_LOGE(TAG, "FS done");
142142
}

main/mqtt/MQTTConnection.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ namespace mqtt
6161
case MQTT_EVENT_ERROR:
6262
ESP_LOGI(TAG, "MQTT_EVENT_ERROR");
6363
break;
64+
case MQTT_EVENT_DELETED:
65+
ESP_LOGI(TAG, "MQTT_EVENT_DELETED");
66+
break;
6467
case MQTT_EVENT_ANY:
6568
ESP_LOGI(TAG, "MQTT_EVENT_ANY");
6669
break;

main/wifi/WifiContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ static void event_handler(void* arg, esp_event_base_t event_base,
3939
callback(ctx::WifiAssociationState::CONNECTING);
4040
} else if (event_base == IP_EVENT && event_id == IP_EVENT_STA_GOT_IP) {
4141
ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;
42-
ESP_LOGI(TAG, "got ip:%s",
43-
ip4addr_ntoa(&event->ip_info.ip));
42+
ESP_LOGI(TAG, "got ip:" IPSTR "\n",
43+
IP2STR(&event->ip_info.ip));
4444
xEventGroupSetBits(s_wifi_event_group, WIFI_CONNECTED_BIT);
4545
callback(ctx::WifiAssociationState::CONNECTED);
4646
}
@@ -112,7 +112,7 @@ namespace ctx
112112
strcpy(reinterpret_cast<char*>(wifi_config.sta.password), mPassword.c_str());
113113

114114
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA) );
115-
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
115+
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wifi_config) );
116116
ESP_ERROR_CHECK(esp_wifi_start() );
117117

118118
ESP_LOGI(TAG, "wifi_init_sta finished.");

0 commit comments

Comments
 (0)