send "Yo" before every serial light update
This commit is contained in:
@@ -66,8 +66,6 @@ LightsDriver_LinuxSerial::LightsDriver_LinuxSerial()
|
|||||||
#if 0
|
#if 0
|
||||||
LOG->Info(" new line=%02x", my_termios.c_line);
|
LOG->Info(" new line=%02x", my_termios.c_line);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WriteString( "Yo", strlen("Yo") );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LightsDriver_LinuxSerial::~LightsDriver_LinuxSerial()
|
LightsDriver_LinuxSerial::~LightsDriver_LinuxSerial()
|
||||||
@@ -93,6 +91,8 @@ void LightsDriver_LinuxSerial::SetLight( Light light, bool bOn )
|
|||||||
|
|
||||||
void LightsDriver_LinuxSerial::Flush()
|
void LightsDriver_LinuxSerial::Flush()
|
||||||
{
|
{
|
||||||
|
WriteString( "Yo", strlen("Yo") );
|
||||||
|
|
||||||
// flip bits so that 0=on, 1=off.
|
// flip bits so that 0=on, 1=off.
|
||||||
char temp_data[2];
|
char temp_data[2];
|
||||||
for( int i=0; i<2; i++ )
|
for( int i=0; i<2; i++ )
|
||||||
|
|||||||
Reference in New Issue
Block a user