1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-18 13:55:16 +03:00

Settings generator: add support for the native C type: bool

This commit is contained in:
Michel Pastor 2021-04-14 16:29:09 +02:00
parent 1ba891d6e1
commit c853269e73

View file

@ -971,6 +971,8 @@ class Generator
types.each do |idx, type|
member = members[idx]
case type
when /^bool/
typ = "bool"
when /^int8_t/ # {aka signed char}"
typ = "int8_t"
when /^uint8_t/ # {aka unsigned char}"