add connection_type to dummies
This commit is contained in:
@ -43,23 +43,7 @@ int main(void)
|
||||
sprintf(msgQueueData.driveData.caDriveErrors, "%i", 1);
|
||||
sprintf(msgQueueData.driveData.caDriveShredTimestamp, "%li", 71718LU);
|
||||
sprintf(msgQueueData.driveData.caDriveShredDuration, "%li", 81718LU);
|
||||
/*
|
||||
switch (drive->connectionType)
|
||||
{
|
||||
case Drive::USB:
|
||||
strcpy(msgQueueData.driveData.caDriveConnectionType, "usb");
|
||||
break;
|
||||
case Drive::SATA:
|
||||
strcpy(msgQueueData.driveData.caDriveConnectionType, "sata");
|
||||
break;
|
||||
case Drive::NVME:
|
||||
strcpy(msgQueueData.driveData.caDriveConnectionType, "nvme");
|
||||
break;
|
||||
case Drive::UNKNOWN:
|
||||
default:
|
||||
strcpy(msgQueueData.driveData.caDriveConnectionType, "na");
|
||||
}
|
||||
*/
|
||||
strcpy(msgQueueData.driveData.caDriveConnectionType, "sata");
|
||||
sprintf(msgQueueData.driveData.caDriveReHddVersion, REHDD_VERSION);
|
||||
|
||||
std::cout << "Sending message to queue..." << std::endl;
|
||||
|
||||
@ -28,7 +28,7 @@ typedef struct
|
||||
char caDriveShredDuration[STR_BUFFER_SIZE];
|
||||
char caDriveCapacity[STR_BUFFER_SIZE];
|
||||
char caDriveState[STR_BUFFER_SIZE];
|
||||
// char caDriveConnectionType[STR_BUFFER_SIZE];
|
||||
char caDriveConnectionType[STR_BUFFER_SIZE];
|
||||
char caDriveModelFamily[STR_BUFFER_SIZE];
|
||||
char caDriveModelName[STR_BUFFER_SIZE];
|
||||
char caDriveSerialnumber[STR_BUFFER_SIZE];
|
||||
|
||||
Reference in New Issue
Block a user