File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -197,20 +197,20 @@ dds_device_proxy::dds_device_proxy( std::shared_ptr< const device_info > const &
197197 [&]( std::shared_ptr< realdds::dds_stream > const & stream )
198198 {
199199 auto & sensor = sensor_name_to_info[stream->sensor_name ()];
200- if ( stream->type_string () == " depth"
201- || stream->type_string () == " ir" )
200+ if ( strcmp ( stream->type_string (), " depth" ) == 0
201+ || strcmp ( stream->type_string (), " ir" ) == 0 )
202202 {
203203 // If there's depth or infrared, it is a depth sensor regardless of what else is in there
204204 // E.g., the D405 has a color stream in the depth sensor
205205 sensor.type = RS2_STREAM_DEPTH;
206206 }
207207 else if ( RS2_STREAM_ANY == sensor.type )
208208 {
209- if ( stream->type_string () == " color" )
209+ if ( strcmp ( stream->type_string (), " color" ) == 0 )
210210 {
211211 sensor.type = RS2_STREAM_COLOR;
212212 }
213- else if ( stream->type_string () == " motion" )
213+ else if ( strcmp ( stream->type_string (), " motion" ) == 0 )
214214 {
215215 sensor.type = RS2_STREAM_MOTION;
216216 }
You can’t perform that action at this time.
0 commit comments