Skip to content
Snippets Groups Projects
Commit 12cdd2da authored by jsiegle's avatar jsiegle
Browse files

Merge branch 'master' of https://github.com/open-ephys/GUI

parents 0f97c42b 06afb918
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -90,7 +90,7 @@ void PulsePal::initialize()
unsigned char bytesToWrite = 59;
bool a = serial.writeByte(bytesToWrite);
serial.writeByte(bytesToWrite);
// std::cout << "error number: " << a << std::endl;
......@@ -279,7 +279,9 @@ uint8_t PulsePal::voltageToByte(float voltage)
void PulsePal::triggerChannel(uint8_t chan)
{
uint8_t bytesToWrite[2] = {84, 1 << (chan-1)};
const uint8_t code = 1 << (chan-1);
uint8_t bytesToWrite[2] = {84, code};
serial.writeBytes(bytesToWrite, 2);
}
......
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