Commit 6067e488 authored by Benjamin Franksen's avatar Benjamin Franksen
Browse files

simplify phytronCreateController (and avoid warnings)

parent 4c214041
......@@ -146,8 +146,7 @@ phytronController::phytronController(const char *phytronPortName, const char *as
extern "C" int phytronCreateController(const char *phytronPortName, const char *asynPortName,
int movingPollPeriod, int idlePollPeriod, double timeout)
{
phytronController *pphytronController = new phytronController(phytronPortName, asynPortName, movingPollPeriod/1000., idlePollPeriod/1000., timeout);
pphytronController = NULL;
new phytronController(phytronPortName, asynPortName, movingPollPeriod/1000., idlePollPeriod/1000., timeout);
return asynSuccess;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment