[PATCH] shell fails to compile on NIL, still using _CHIBIOS_NIL_ Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
electronic_eel
Posts: 77
Joined: Sat Mar 19, 2016 8:07 pm
Been thanked: 17 times

[PATCH] shell fails to compile on NIL, still using _CHIBIOS_NIL_  Topic is solved

Postby electronic_eel » Mon May 24, 2021 3:43 pm

Hi,

the shell needs to disable some calls on NIL that only work on RT. These are guarded by checks for _CHIBIOS_NIL_. But since NIL 4.0 the define changed to __CHIBIOS_NIL__ with 2 underscores. This means the current code doesn't compile anymore.

The attached patch fixes this. Afterwards I was not only able to compile it, but I also confirmed that the shell still works on NIL. Please consider applying the attached patch.

Thanks.
Attachments
nil-shell.zip
zipped patch
(1.38 KiB) Downloaded 119 times

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: [PATCH] shell fails to compile on NIL, still using _CHIBIOS_NIL_

Postby Giovanni » Mon May 24, 2021 3:44 pm

Thanks for finding.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: [PATCH] shell fails to compile on NIL, still using _CHIBIOS_NIL_

Postby Giovanni » Tue May 25, 2021 9:38 am

Fixed in repository,

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 13 guests