<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: documentation errors</title>
		<link>http://forums.leaflabs.com/topic.php?id=1218</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:24:19 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1218" rel="self" type="application/rss+xml" />

		<item>
			<title>poslathian on "documentation errors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1218#post-7370</link>
			<pubDate>Fri, 16 Dec 2011 17:35:31 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">7370@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;thanks for the pointers, we will incorporate the fixes!&#60;/p&#62;
&#60;p&#62;that serialx.read() always returns actually got me earlier today. SerialUSB.read() is blocking, but Serialx.read() is not. Apparently there is a good technical reason for this, but I dont know what it is... mbolivar?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cyberia on "documentation errors"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1218#post-7352</link>
			<pubDate>Wed, 14 Dec 2011 19:26:54 +0000</pubDate>
			<dc:creator>cyberia</dc:creator>
			<guid isPermaLink="false">7352@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;hey&#60;br /&#62;
i've made a little robot that is controlled via xbee using the maple r5 and as well as the serialx.read() problems identified in &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=1174&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=1174&#60;/a&#62; i have also discovered an error in the documentation for char.&#60;br /&#62;
-------------------------------------------------------------------------&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;loop(){
char cmd = serialx.read()
.......
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;does not block but iterates through the whole buffer, meaning the data recieved from the xbee is repeatedly read every minute or so, it just mostly reads out empty bytes.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;while(serialx.available==0);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;fixes it, but it took me a long time to work out what the issue was.&#60;br /&#62;
-------------------------------------------------------------------------&#60;br /&#62;
In the language reference, it says that char is a signed byte and &#34;unsigned char&#34; is the unsigned version, but unless &#34;signed char&#34; is used it is in fact unsigned. took me a while to work that out too, but should be fairly easy to fix.&#60;/p&#62;
&#60;p&#62;t
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
