mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
fix incorrect formatting again for #1288
This commit is contained in:
parent
691216a298
commit
74ae8a45d9
@ -54,7 +54,7 @@ void SpectranHTTPClient::setCenterFrequency(uint64_t freq) {
|
|||||||
sprintf(buf, "{\"frequencyCenter\":%" PRIu64 ",\"frequencySpan\":%" PRIu64 ",\"type\":\"capture\"}", freq, _samplerate);
|
sprintf(buf, "{\"frequencyCenter\":%" PRIu64 ",\"frequencySpan\":%" PRIu64 ",\"type\":\"capture\"}", freq, _samplerate);
|
||||||
std::string data = buf;
|
std::string data = buf;
|
||||||
char lenBuf[16];
|
char lenBuf[16];
|
||||||
sprintf(lenBuf, "%" PRIu64, data.size());
|
sprintf(lenBuf, "%" PRIu64, (uint64_t)data.size());
|
||||||
rqhdr.setField("Content-Length", lenBuf);
|
rqhdr.setField("Content-Length", lenBuf);
|
||||||
controlHttp.sendRequestHeader(rqhdr);
|
controlHttp.sendRequestHeader(rqhdr);
|
||||||
controlSock->sendstr(data);
|
controlSock->sendstr(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user