<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Repetier Firmware V0.82.2 Compile Error - Rambo</title>
        <description> When compiling Repetier Firmware V0.82.2 for Rambo motherboard I receive below compile error:    

&#039;Motor_Current&#039; was not declared in this scope
Commands.cpp: In function &#039;void current_control_init()&#039;:
Commands.cpp:238: error: &#039;MOTOR_CURRENT&#039; was not declared in this scope

Only&#039; #define MOTHERBOARD 301&#039; changed in config file.

Commands.cpp

  #if DIGIPOTSS_PIN &amp;amp;&amp;amp; DIGIPOTSS_PIN &amp;gt; -1
    const uint8_t digipot_motor_current[] = MOTOR_CURRENT;
   
    SPI.begin(); 
    SET_OUTPUT(DIGIPOTSS_PIN);    
    for(int i=0;i&amp;lt;=4;i++) 
      //digitalPotWrite(digipot_ch, digipot_motor_current);
      set_current(i,digipot_motor_current);
  #endif


Anybody know how to fix this one?</description>
        <link>https://reprap.org/forum/read.php?267,204634,204634#msg-204634</link>
        <lastBuildDate>Tue, 11 Aug 2026 10:27:04 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?267,204634,802662#msg-802662</guid>
            <title>Re: Repetier Firmware V0.82.2 Compile Error - Rambo</title>
            <link>https://reprap.org/forum/read.php?267,204634,802662#msg-802662</link>
            <description><![CDATA[ This fix also works in Marlin<br />
<br />
I was compiling Marlin 1.1.x on Arduino 1.8.2 for RAMBo 1.2d<br />
<br />
I got this error:<br />
<br />
'DIGIPOT_MOTOR_CURRENT' was not declared in this scope<br />
<br />
I uncommented the line below in MArlin's Configuration_adv.h<br />
<br />
#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 }   // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)<br />
<br />
...and it compiles fine.]]></description>
            <dc:creator>alexgibson3d</dc:creator>
            <category>Repetier</category>
            <pubDate>Thu, 28 Dec 2017 08:06:58 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?267,204634,205216#msg-205216</guid>
            <title>Re: Repetier Firmware V0.82.2 Compile Error - Rambo</title>
            <link>https://reprap.org/forum/read.php?267,204634,205216#msg-205216</link>
            <description><![CDATA[ Thanks Repetier]]></description>
            <dc:creator>RobGer</dc:creator>
            <category>Repetier</category>
            <pubDate>Fri, 03 May 2013 17:48:07 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?267,204634,204810#msg-204810</guid>
            <title>Re: Repetier Firmware V0.82.2 Compile Error - Rambo</title>
            <link>https://reprap.org/forum/read.php?267,204634,204810#msg-204810</link>
            <description><![CDATA[ See Configuration. Line 685<br />
<br />
<pre class="bbcode">
// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
//#define MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
//#define MOTOR_CURRENT {35713,35713,35713,35713,35713} // Values 0-65535 (3D Master 35713 = ~1A)</pre>
<br />
Uncomment the rambo version part, set your currents and recompile.]]></description>
            <dc:creator>repetier</dc:creator>
            <category>Repetier</category>
            <pubDate>Thu, 02 May 2013 11:34:08 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?267,204634,204634#msg-204634</guid>
            <title>Repetier Firmware V0.82.2 Compile Error - Rambo</title>
            <link>https://reprap.org/forum/read.php?267,204634,204634#msg-204634</link>
            <description><![CDATA[ When compiling Repetier Firmware V0.82.2 for Rambo motherboard I receive below compile error:    <br />
<br />
'Motor_Current' was not declared in this scope<br />
Commands.cpp: In function 'void current_control_init()':<br />
Commands.cpp:238: error: 'MOTOR_CURRENT' was not declared in this scope<br />
<br />
Only' #define MOTHERBOARD 301' changed in config file.<br />
<br />
Commands.cpp<br />
<br />
  #if DIGIPOTSS_PIN &amp;&amp; DIGIPOTSS_PIN &gt; -1<br />
    const uint8_t digipot_motor_current[] = MOTOR_CURRENT;<br />
   <br />
    SPI.begin(); <br />
    SET_OUTPUT(DIGIPOTSS_PIN);    <br />
    for(int i=0;i&lt;=4;i++) <br />
      //digitalPotWrite(digipot_ch<i>, digipot_motor_current<i>);<br />
      set_current(i,digipot_motor_current<i>);<br />
  #endif<br />
<br />
<br />
Anybody know how to fix this one?</i></i></i>]]></description>
            <dc:creator>RobGer</dc:creator>
            <category>Repetier</category>
            <pubDate>Thu, 02 May 2013 03:08:20 -0400</pubDate>
        </item>
    </channel>
</rss>
