Skip to content

Commit

Permalink
Fix for AVR
Browse files Browse the repository at this point in the history
  • Loading branch information
lexus2k committed Feb 19, 2024
1 parent f990c5c commit b6e21e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/TinyProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,11 @@ void Proto::onRead(uint8_t addr, uint8_t *buf, int len)
IPacket * p = m_pool;
if ( p == nullptr )
{
#if CONFIG_TINYHAL_THREAD_SUPPORT == 1
// TODO: Lost frame
m_lostRxFrames++;
// printf("Lost -------------------- \n");
#endif
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/hal/tiny_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include "tiny_serial.h"

#if defined(ARDUINO)
#if defined(ARDUINO) || defined(__AVR__)

#elif defined(__linux__)

Expand Down
2 changes: 1 addition & 1 deletion src/hal/tiny_serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ extern "C"
*/

#include <stdint.h>
#if defined(ARDUINO)
#if defined(ARDUINO) || defined(__AVR__)
#include "arduino/arduino_serial.h"
#elif defined(__linux__)
#include "linux/linux_serial.h"
Expand Down

0 comments on commit b6e21e8

Please sign in to comment.