examples/AVR/Slave/ds401.c
changeset 417 ae068232859c
parent 413 57c7a451c671
equal deleted inserted replaced
416:9ef58fa2c66a 417:ae068232859c
    47       Read_Inputs_8_Bit[i] = input;
    47       Read_Inputs_8_Bit[i] = input;
    48     }
    48     }
    49     newInput++;
    49     newInput++;
    50   }
    50   }
    51   if (transmission)
    51   if (transmission)
       
    52   {
       
    53   /* force emission of PDO by artificially changing last emitted*/
       
    54     d->PDO_status[0].last_message.cob_id = 0;
    52     sendPDOevent(d);
    55     sendPDOevent(d);
       
    56   }
    53 
    57 
    54   return 1;
    58   return 1;
    55 }
    59 }
    56 
    60 
    57 unsigned char digital_output_handler(CO_Data* d, unsigned char *newOutput, unsigned char size)
    61 unsigned char digital_output_handler(CO_Data* d, unsigned char *newOutput, unsigned char size)