Untested patch for Ir (NOT IrDA!) connections
[gnokii.git] / common / protocol / fbus.c
index 99e1d52..a8ff0e9 100644 (file)
@@ -289,8 +289,11 @@ void FBUS_RX_StateMachine(unsigned char rx_byte) {
   case FBUS_RX_Sync:
 
       if ((CurrentConnectionType==GCT_FBUS && rx_byte == FBUS_FRAME_ID) ||
-          0/*((CurrentConnectionType==GCT_Infrared ||
-          CurrentConnectionType==GCT_Tekram) && rx_byte == FBUS_IR_FRAME_ID)*/) {
+          ((CurrentConnectionType==GCT_Infrared
+#ifndef UCLINUX
+          || CurrentConnectionType==GCT_Tekram
+#endif /* UCLINUX */
+           ) && rx_byte == FBUS_IR_FRAME_ID)) {
 
         BufferCount = 0;
 
@@ -595,9 +598,11 @@ static bool FBUS_OpenSerial(void)
        CurrentConnectionType=GCT_FBUS;
 
        break;
+#endif /* UCLINUX */
      case GCT_Infrared:
        /* It's more complicated and not done here */
        break;
+#ifndef UCLINUX
 
      case GCT_Tekram:
        /* It's more complicated and not done here */