Skip to content
Snippets Groups Projects
Commit e91b2fe4 authored by Timon Heim's avatar Timon Heim
Browse files

Revert to low default

parent 635d897d
No related branches found
No related tags found
No related merge requests found
......@@ -23,17 +23,17 @@ void SpecTxCore::writeFifo(uint32_t value) {
}
void SpecTxCore::setCmdEnable(uint32_t value) {
uint32_t mask = (1 << value);
if (verbose)
std::cout << __PRETTY_FUNCTION__ << " : Value 0x" << std::hex << value << std::dec << std::endl;
SpecCom::writeSingle(TX_ADDR | TX_ENABLE, (1 << value));
enMask = (1 << value);
std::cout << __PRETTY_FUNCTION__ << " : Value 0x" << std::hex << mask << std::dec << std::endl;
SpecCom::writeSingle(TX_ADDR | TX_ENABLE, mask);
enMask = mask;
}
void SpecTxCore::setCmdEnable(std::vector<uint32_t> channels) {
uint32_t mask = 0;
for (uint32_t channel : channels) {
mask += (1 << channel);
}
if (verbose)
std::cout << __PRETTY_FUNCTION__ << " : Value 0x" << std::hex << mask << std::dec << std::endl;
......
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