flip bits before sending to serial light controller

This commit is contained in:
Chris Danford
2003-11-16 20:27:46 +00:00
parent 6353d9a007
commit 265aa8f116
@@ -89,5 +89,10 @@ void LightsDriver_LinuxSerial::SetLight( Light light, bool bOn )
void LightsDriver_LinuxSerial::Flush()
{
WriteString( g_data, sizeof(g_data) );
// flip bits so that 0=on, 1=off.
char temp_data[2];
for( int i=0; i<2; i++ )
temp_data[i] = ~g_data[i];
WriteString( temp_data, sizeof(temp_data) );
}