Commit dbc2486d authored by Samuel Debionne's avatar Samuel Debionne

Fix the talk() backdoor for Python 3

parent 9da79623
......@@ -706,7 +706,7 @@ namespace lima
void getCameraName(std::string& name);
const char *talk(const char *cmd);
const char *talk(const std::string& cmd);
const char *_talk(const char *cmd, char *output, int lg);
......
......@@ -15,7 +15,7 @@ namespace Pco
void startAcq();
void reset(int);
const char *talk(const char *cmd);
const char *talk(const std::string& cmd);
int getNbAcquiredFrames();
......
......@@ -264,14 +264,14 @@ void stcPcoData::traceMsg(char *s){
}
static char buff[BUFF_INFO_SIZE +16];
const char *Camera::talk(const char *cmd){
const char *Camera::talk(const std::string& cmd){
DEB_MEMBER_FUNCT();
static char buff[BUFF_INFO_SIZE +16];
sprintf_s(buff, BUFF_INFO_SIZE, "talk> %s", cmd);
sprintf_s(buff, BUFF_INFO_SIZE, "talk> %s", cmd.c_str());
m_msgLog->add(buff);
return _talk(cmd, buff, BUFF_INFO_SIZE);
return _talk(cmd.c_str(), buff, BUFF_INFO_SIZE);
}
#define NRTOK 10
......
Markdown is supported
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