if(SendOverUSB) /* Write data on the USB */ { sprintf( dataOut, "\nTimeStamp: %02d:%02d:%02d.%02d", stimestructure.Hours, stimestructure.Minutes, stimestructure.Seconds, subSec ); CDC_Fill_Buffer(( uint8_t * )dataOut, strlen( dataOut )); } else if(SD_Log_Enabled) /* Write data to the file on the SDCard */ { uint8_t size; size = sprintf( dataOut, "%d:%d:%d.%d\t", stimestructure.Hours, stimestructure.Minutes, stimestructure.Seconds, subSec); res = f_write(&MyFile, dataOut, size, (void *)&byteswritten); } |