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 +}