Personal fork
Fork of rosserial_mbed_lib by
Diff: std_msgs/UInt8.h
- Revision:
- 4:684f39d0c346
- Parent:
- 3:1cf99502f396
--- a/std_msgs/UInt8.h Sat Nov 12 23:54:45 2011 +0000 +++ b/std_msgs/UInt8.h Wed Feb 29 23:00:21 2012 +0000 @@ -1,4 +1,4 @@ -#ifndef _ROS_std_msgs_UInt8_h + #ifndef _ROS_std_msgs_UInt8_h #define _ROS_std_msgs_UInt8_h #include <stdint.h> @@ -25,7 +25,7 @@ virtual int deserialize(unsigned char *inbuffer) { int offset = 0; - this->data |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); + this->data = ((uint8_t) (*(inbuffer + offset))); offset += sizeof(this->data); return offset; }