From 7cc06b7a7b4b6ac87ff5254a2fead617bda2ca7e Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Sat, 1 Jan 2022 05:54:23 +0100 Subject: [PATCH] Fixed RFspace client on MacOS --- source_modules/rfspace_source/src/rfspace_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source_modules/rfspace_source/src/rfspace_client.cpp b/source_modules/rfspace_source/src/rfspace_client.cpp index 28f1ffeb..6b7226a5 100644 --- a/source_modules/rfspace_source/src/rfspace_client.cpp +++ b/source_modules/rfspace_source/src/rfspace_client.cpp @@ -138,7 +138,7 @@ namespace rfspace { } void RFspaceClientClass::start(SampleFormat sampleFormat, SampleDepth sampleDepth) { - uint8_t args[4] = { sampleFormat, RFSPACE_STATE_RUN, sampleDepth, 0 }; + uint8_t args[4] = { (uint8_t)sampleFormat, (uint8_t)RFSPACE_STATE_RUN, (uint8_t)sampleDepth, 0 }; setControlItem(RFSPACE_CTRL_ITEM_STATE, args, sizeof(args)); } @@ -224,4 +224,4 @@ namespace rfspace { if (!udpConn) { return NULL; } return RFspaceClient(new RFspaceClientClass(std::move(conn), std::move(udpConn), out)); } -} \ No newline at end of file +}