Skip to content

Commit

Permalink
fix str to int conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Jan 1, 2022
1 parent 26b27dc commit 04719be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bin/calaos_server/IPCam/Foscam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
******************************************************************************/
#include "Foscam.h"
#include "IOFactory.h"
#include <string.h>

using namespace Calaos;

Expand Down Expand Up @@ -108,7 +107,9 @@ void Foscam::activateCapabilities(std::string cap, std::string cmd, std::string
urlStop += "&usr=" + param["username"] + "&pwd=" + param["password"];

//Commande d'arrêt du mouvement pour simuler du pas à pas
float moveDelay = 0.100 * (1 + std::stoi(param["zoom_step"]));
int zstep = 0;
Utils::from_string(param["zoom_step"], zstep);
float moveDelay = 0.100 * (1 + zstep);
Timer::singleShot(moveDelay, [=]()
{
UrlDownloader::get(urlStop);
Expand Down

0 comments on commit 04719be

Please sign in to comment.