Update of /cvsroot/playerstage/code/player/client_libs/libplayerc
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12994/client_libs/libplayerc
Modified Files:
dev_laser.c
Log Message:
fixed segfault in laser set config repsonse
Index: dev_laser.c
===================================================================
RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc/dev_laser.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** dev_laser.c 5 Dec 2007 21:43:50 -0000 1.46
--- dev_laser.c 16 Dec 2007 20:50:47 -0000 1.47
***************
*** 220,233 ****
if(playerc_client_request(device->info.client, &device->info,
PLAYER_LASER_REQ_SET_CONFIG,
! (void*)&config, (void**)&resp) < 0)
return -1;
! // copy them locally
! device->scan_start = resp->min_angle;
! device->scan_res = resp->resolution;
! device->range_res = resp->range_res;
! device->intensity_on = resp->intensity;
! device->scanning_frequency = resp->scanning_frequency;
! player_laser_config_t_free(resp);
return 0;
--- 220,232 ----
if(playerc_client_request(device->info.client, &device->info,
PLAYER_LASER_REQ_SET_CONFIG,
! (void*)&config, NULL) < 0)
return -1;
! // if the set suceeded copy them locally
! device->scan_start = config.min_angle;
! device->scan_res = config.resolution;
! device->range_res = config.range_res;
! device->intensity_on = config.intensity;
! device->scanning_frequency = config.scanning_frequency;
return 0;
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit