This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial.
Dependents: rosserial_mbed robot_S2
Diff: std_msgs/UInt8.h
- Revision:
- 4:684f39d0c346
- Parent:
- 3:1cf99502f396
diff -r 1cf99502f396 -r 684f39d0c346 std_msgs/UInt8.h --- 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; }