Merge UhkModuleVars into uhkModuleStates. Also make uhkModuleStates globally accessible because it must be accessed by other parts of the firmware, so it's unpractical to keep it private and write accessor functions for it.
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
uint8_t moduleId;
|
||||
uint8_t protocolVersion;
|
||||
uhk_module_phase_t phase;
|
||||
uhk_module_vars_t sourceVars;
|
||||
uhk_module_vars_t targetVars;
|
||||
i2c_message_t rxMessage;
|
||||
uint8_t firmwareI2cAddress;
|
||||
@@ -76,7 +77,7 @@
|
||||
|
||||
// Variables:
|
||||
|
||||
extern uhk_module_vars_t UhkModuleVars[UHK_MODULE_MAX_COUNT];
|
||||
extern uhk_module_state_t uhkModuleStates[UHK_MODULE_MAX_COUNT];
|
||||
|
||||
// Functions:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user