Skip to content
Snippets Groups Projects
Commit a145fe1d authored by Marco Filho's avatar Marco Filho
Browse files

Fix register names in maps

The map keys are going to be used as register names
in the setRegister function, so they should be lowercase.
parent 72b7c0ae
No related branches found
No related tags found
1 merge request!4Add arrays to set channels
...@@ -38,7 +38,7 @@ protected: ...@@ -38,7 +38,7 @@ protected:
//Registers channels per hybrid, per VMM //Registers channels per hybrid, per VMM
int vmmST_[HYBRIDS_PER_FEN][VMMS_PER_HYBRID]; int vmmST_[HYBRIDS_PER_FEN][VMMS_PER_HYBRID];
int vmmSC_[HYBRIDS_PER_FEN][VMMS_PER_HYBRID]; int vmmSC_[HYBRIDS_PER_FEN][VMMS_PER_HYBRID];
std::map<std::string, int(*)[VMMS_PER_HYBRID]> registers{{"ST", vmmST_}, {"SC", vmmSC_}}; std::map<std::string, int(*)[VMMS_PER_HYBRID]> registers{{"st", vmmST_}, {"sc", vmmSC_}};
private: private:
static constexpr const char *driverName = "VMMTbl"; static constexpr const char *driverName = "VMMTbl";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment