Skip to content

Commit fad6902

Browse files
authored
Fix Portenta H7 (#8)
* Fix header Signed-off-by: Pablo Garrido <[email protected]> * Update Signed-off-by: Pablo Garrido <[email protected]> * Update Signed-off-by: Pablo Garrido <[email protected]> Revert "Update" This reverts commit 822f3ecc978f3551ff54eaf8a599db90c136f50f. Update Signed-off-by: Pablo Garrido <[email protected]> * Update Signed-off-by: Pablo Garrido <[email protected]> * Update Signed-off-by: Pablo Garrido <[email protected]> * Update Signed-off-by: Pablo Garrido <[email protected]>
1 parent 01ee38e commit fad6902

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

ci/platformio.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ lib_deps =
8484
platform = raspberrypi
8585
board = nanorp2040connect
8686
framework = arduino
87+
lib_ldf_mode = off
8788
microros_transport = serial
8889
lib_deps =
8990
../
@@ -111,8 +112,6 @@ build_flags =
111112
-DF_CPU=16000000L
112113
lib_deps =
113114
../
114-
arduino-libraries/WiFi@^1.2.7
115-
SPI
116115

117116
[env:esp32dev_wifi]
118117
platform = espressif32
@@ -129,7 +128,8 @@ platform = raspberrypi
129128
board = nanorp2040connect
130129
framework = arduino
131130
microros_transport = wifi_nina
131+
lib_ldf_mode = chain+
132132
lib_deps =
133-
../
134133
arduino-libraries/WiFiNINA@^1.8.13
135-
SPI
134+
SPI
135+
../

ci/src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include <Arduino.h>
22

3+
#if defined(MICRO_ROS_TRANSPORT_ARDUINO_WIFI)
4+
#include <WiFi.h>
5+
#endif
6+
37
#include <micro_ros_platformio.h>
48

59
#include <stdio.h>

platform_code/micro_ros_platformio.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44

55
#define __attribute__(x)
66

7+
#include <uxr/client/transport.h>
8+
#include <rmw_microros/rmw_microros.h>
9+
710
#ifdef __cplusplus
811
extern "C"
912
{
1013
#endif
1114

12-
#include <uxr/client/transport.h>
13-
#include <rmw_microros/rmw_microros.h>
14-
1515
bool platformio_transport_open(struct uxrCustomTransport * transport);
1616
bool platformio_transport_close(struct uxrCustomTransport * transport);
1717
size_t platformio_transport_write(struct uxrCustomTransport* transport, const uint8_t * buf, size_t len, uint8_t * err);
1818
size_t platformio_transport_read(struct uxrCustomTransport* transport, uint8_t* buf, size_t len, int timeout, uint8_t* err);
1919

20-
#include <micro_ros_transport.h>
21-
2220
#ifdef __cplusplus
2321
}
2422
#endif
2523

24+
#include <micro_ros_transport.h>
25+
2626
#endif // MICRO_ROS_PLATFORMIO

0 commit comments

Comments
 (0)