3 ms·
What I'd actually be doing is more like: when ROBOT_VER == 32: type TSonarAddresses = array[0..3, int] const sonarAddresses: TSonarAddresses = [1,2,3
by Symmetry 12y ago
What I'd actually be doing is more like:
when ROBOT_VER == 32:
type TSonarAddresses = array[0..3, int]
const sonarAddresses: TSonarAddresses = [1,2,3,4]
...
elif ROBOT_VER == 33:
...
and stuff like that.
- dom96 12y agoI see. Good, that is precisely what 'when' should be used for :)