1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 06:54:39 -04:00

Web API: change all boolean parameters to integer

This commit is contained in:
f4exb
2017-11-24 00:55:47 +01:00
parent 7a2f60fe5d
commit 6c31320812
6 changed files with 100 additions and 100 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
if (request.getMethod() == "GET")
{
QByteArray txStr = request.getParameter("tx");
bool tx = (txStr == "true");
bool tx = (txStr == "1");
int status = m_adapter->instanceDevices(tx, normalResponse, errorResponse);
response.setStatus(status);
@@ -107,7 +107,7 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
if (request.getMethod() == "GET")
{
QByteArray txStr = request.getParameter("tx");
bool tx = (txStr == "true");
bool tx = (txStr == "1");
int status = m_adapter->instanceChannels(tx, normalResponse, errorResponse);
response.setStatus(status);