Skip to content

Commit

Permalink
Small fixes ports for compilation and connection re-establish
Browse files Browse the repository at this point in the history
  • Loading branch information
lexus2k committed Jul 26, 2024
1 parent 017e60b commit 6781352
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if (NOT DEFINED COMPONENT_DIR)
else()

idf_component_register(SRCS ${SOURCE_FILES}
INCLUDE_DIRS "src")
INCLUDE_DIRS "src" PRIV_REQUIRES esp_timer)

endif()

Expand Down
2 changes: 2 additions & 0 deletions src/hal/esp32/esp32_hal.inl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
For further information contact via email on github account.
*/

#include "esp_timer.h"

void tiny_mutex_create(tiny_mutex_t *mutex)
{
*mutex = xSemaphoreCreateMutex();
Expand Down
4 changes: 4 additions & 0 deletions src/proto/fd/tiny_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,10 @@ static int __on_u_frame_read(tiny_fd_handle_t handle, uint8_t peer, void *data,
.control = HDLC_U_FRAME_TYPE_UA | HDLC_U_FRAME_BITS,
};
__put_u_s_frame_to_tx_queue(handle, TINY_FD_QUEUE_U_FRAME, &frame, 2);
if ( handle->peers[peer].state == TINY_FD_STATE_CONNECTED )
{
__switch_to_disconnected_state(handle, peer);
}
__switch_to_connected_state(handle, peer);
}
else if ( type == HDLC_U_FRAME_TYPE_DISC )
Expand Down

0 comments on commit 6781352

Please sign in to comment.