Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
added bracketing for explicit operator order warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MPIBR-kretschmerf committed Jan 31, 2017
1 parent 2919a39 commit f867052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NIDAQmxInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ void NIDAQmxInterface::DAQmxSetDO(uInt8 qry_port_bit, bool arm_timer, bool isSet
if (daq->do_port != 0)
{
if(isSet){
daq->do_bit_wrt |= 1 << qry_port_bit-1;
daq->do_bit_wrt |= (1 << (qry_port_bit-1));
}else{
daq->do_bit_wrt &= ~(1 << qry_port_bit-1);
daq->do_bit_wrt &= ~(1 << (qry_port_bit-1));
}
DAQmxErrChk(DAQmxWriteDigitalU8(daq->do_port, 1, 1, 10.0, DAQmx_Val_GroupByChannel, &daq->do_bit_wrt, &written, NULL));
}
Expand Down

0 comments on commit f867052

Please sign in to comment.