Skip to content

Commit 0f3405b

Browse files
authored
Fix project environment modifications (#36)
* Upgrade pio version Signed-off-by: acuadros95 <acuadros1995@gmail.com> * Revert changes * Remove space
1 parent 285dd94 commit 0f3405b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ The community is encouraged to open pull request with custom use cases.
4545
## Requirements
4646

4747
- PlatformIO [local installation](https://docs.platformio.org/en/stable/core/installation.html) or [PlatformIO IDE for VSCode](https://platformio.org/install/ide?install=vscode)
48+
- PlatformIO Core version 6.1.0 or greater
4849
- PlatformIO needs `git`, `cmake` and `pip3` to handle micro-ROS internal dependencies:
4950

5051
```bash

extra_script.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Import("projenv")
12
Import("env")
23

34
import os
@@ -129,8 +130,8 @@ def build_microros(*args, **kwargs):
129130
main_path + "/platform_code/{}/{}".format(framework, microros_transport)])
130131

131132
# Add micro-ROS defines to user application
132-
global_env.Append(CPPDEFINES=[('MICRO_ROS_TRANSPORT_{}_{}'.format(framework.upper(), microros_transport.upper()), 1)])
133-
global_env.Append(CPPDEFINES=[('MICRO_ROS_DISTRO_ {} '.format(microros_distro.upper()), 1)])
133+
projenv.Append(CPPDEFINES=[('MICRO_ROS_TRANSPORT_{}_{}'.format(framework.upper(), microros_transport.upper()), 1)])
134+
projenv.Append(CPPDEFINES=[('MICRO_ROS_DISTRO_{} '.format(microros_distro.upper()), 1)])
134135

135136
# Include path for framework
136137
global_env.Append(CPPPATH=[main_path + "/platform_code/{}".format(framework)])

0 commit comments

Comments
 (0)