<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error compiling JoyC_&amp;_RoverC&#x2F;Master&#x2F;Master.ino]]></title><description><![CDATA[<p dir="auto">I try to compile the code from <a href="https://github.com/m5stack/M5StickC-Plus/blob/master/examples/KIT/JoyC_%26_RoverC/Master/Master.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5StickC-Plus/blob/master/examples/KIT/JoyC_%26_RoverC/Master/Master.ino</a><br />
under Arduino: 1.8.19 (Windows 10), Board: "M5Stick-C-Plus, Default, 1500000, None"<br />
But i get an error:</p>
<pre><code>RoverC:88:23: error: 'I2C_ERROR_NO_BEGIN' was not declared in this scope

 uint8_t IIC_ReState = I2C_ERROR_NO_BEGIN;

                       ^~~~~~~~~~~~~~~~~~

C:\Users\toro\Documents\Arduino\RoverC\RoverC.ino:88:23: note: suggested alternative: 'ESP_ERR_NO_MEM'

 uint8_t IIC_ReState = I2C_ERROR_NO_BEGIN;

                       ^~~~~~~~~~~~~~~~~~

                       ESP_ERR_NO_MEM
</code></pre>
<p dir="auto">The answer is in the error, following the suggestion fixes the error.</p>
<p dir="auto">Now, besides that it works i have no idea if the replacement is correct logically. The Const-Names suggest yes, but there might be more to it...<br />
If the replacement is universally ok, should a github pull request be made?</p>
<p dir="auto">EDIT:<br />
There is an error/warning thrown that i had overlooked.<br />
So, just doing the replacement seems like not enough...</p>
<pre><code>RoverC.ino.cpp:1:
...\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.2/
tools/sdk/esp32/include/esp_common/include/esp_err.h:31:37: 
warning: unsigned conversion from 'int' to 'uint8_t' {aka 'unsigned char'} changes value from '257' to '1' [-Woverflow]
 #define ESP_ERR_NO_MEM              0x101   /*!&lt; Out of memory */
                                     ^~~~~
...\Arduino\RoverC\RoverC.ino:88:23: note: in expansion of macro 'ESP_ERR_NO_MEM'
 uint8_t IIC_ReState = ESP_ERR_NO_MEM;
                       ^~~~~~~~~~~~~~
</code></pre>
]]></description><link>https://community.m5stack.com/topic/4012/error-compiling-joyc_-_roverc-master-master-ino</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:21:44 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4012.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Feb 2022 15:12:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error compiling JoyC_&amp;_RoverC&#x2F;Master&#x2F;Master.ino on Sat, 22 Apr 2023 11:29:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sirtet" aria-label="Profile: sirtet">@<bdi>sirtet</bdi></a> Change "I2C_ERROR_NO_BEGIN" to "ESP_OK". The git for M5StickC-Plus has already been fixed with this. The fix also works for the M5StickC code.</p>
]]></description><link>https://community.m5stack.com/post/20663</link><guid isPermaLink="true">https://community.m5stack.com/post/20663</guid><dc:creator><![CDATA[shured]]></dc:creator><pubDate>Sat, 22 Apr 2023 11:29:02 GMT</pubDate></item></channel></rss>