Skip to content

Commit 75fbdc4

Browse files
Remove unnecessary c_str
1 parent a79c0a4 commit 75fbdc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pmacApp/src/pmacController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ asynStatus pmacController::mediumUpdate(pmacCommandStore *sPtr) {
15151515
} else {
15161516
setIntegerParam(axis, PMAC_C_GroupCSPortRBV_, 0);
15171517
}
1518-
std::string cs_cmd = pHardware_->getCSMappingCmd(axisCs, axis).c_str();
1518+
std::string cs_cmd = pHardware_->getCSMappingCmd(axisCs, axis);
15191519
if (sPtr->checkForItem(cs_cmd)) {
15201520
const std::string result = pHardware_->parseCSMappingResult(
15211521
sPtr->readValue(cs_cmd));

0 commit comments

Comments
 (0)