make members atomic
This commit is contained in:
@ -7,7 +7,6 @@
|
||||
|
||||
#include "../include/reHDD.h"
|
||||
|
||||
|
||||
bool Printer::instanceFlag = false;
|
||||
Printer *Printer::single = NULL;
|
||||
|
||||
@ -57,16 +56,16 @@ void Printer::print(Drive *drive)
|
||||
|
||||
switch (drive->connectionType)
|
||||
{
|
||||
case Drive::USB:
|
||||
case Drive::ConnectionType::USB:
|
||||
strncpy(msgQueueData.driveData.caDriveConnectionType, "usb", STR_BUFFER_SIZE);
|
||||
break;
|
||||
case Drive::SATA:
|
||||
case Drive::ConnectionType::SATA:
|
||||
strncpy(msgQueueData.driveData.caDriveConnectionType, "sata", STR_BUFFER_SIZE);
|
||||
break;
|
||||
case Drive::NVME:
|
||||
case Drive::ConnectionType::NVME:
|
||||
strncpy(msgQueueData.driveData.caDriveConnectionType, "nvme", STR_BUFFER_SIZE);
|
||||
break;
|
||||
case Drive::UNKNOWN:
|
||||
case Drive::ConnectionType::UNKNOWN:
|
||||
default:
|
||||
strncpy(msgQueueData.driveData.caDriveConnectionType, "na", STR_BUFFER_SIZE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user