Changed the default pin of ESP32-S2
This commit is contained in:
+2
-1
@@ -38,7 +38,8 @@ void twai_task(void *pvParameters)
|
||||
twai_message_t rx_msg;
|
||||
FRAME_t frameBuf;
|
||||
while (1) {
|
||||
esp_err_t ret = twai_receive(&rx_msg, pdMS_TO_TICKS(1));
|
||||
//esp_err_t ret = twai_receive(&rx_msg, pdMS_TO_TICKS(1));
|
||||
esp_err_t ret = twai_receive(&rx_msg, pdMS_TO_TICKS(10));
|
||||
if (ret == ESP_OK) {
|
||||
ESP_LOGD(TAG,"twai_receive identifier=0x%x flags=0x%x data_length_code=%d",
|
||||
rx_msg.identifier, rx_msg.flags, rx_msg.data_length_code);
|
||||
|
||||
Reference in New Issue
Block a user