[PATCH] Storing CHECKBOX items in an enum

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

[PATCH] Storing CHECKBOX items in an enum

Post by Tommie »

https://github.com/wertarbyte/multiwii- ... items_enum

This neutral patch transforms the BOXACC/BOXMAG/... defines into an enumeration; this maes it possible to leave the actual counting to the compiler while being able to add and remove items; since the number of switchables is (still) limited, this makes it possible to remove unused items and replace them with other stuff while keeping the numbering intact.

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: [PATCH] Storing CHECKBOX items in an enum

Post by Tommie »

?

Post Reply