<p>I recently bought a BigTreeTech SKR V1.3 and uncommented <code>REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER</code> and clicked the upload button but faced an error that says:</p>

<pre><code>Marlin\src\lcd\ultralcd.cpp:767:9: error: 'touch_buttons' was not declared in this scope
if (touch_buttons) {
^~~~~~~~~~~~~
Marlin\src\lcd\ultralcd.cpp:767:9: note: suggested alternative: 'buttons'
if (touch_buttons) {

^~~~~~~~~~~~~
buttons
Marlin\src\lcd\ultralcd.cpp:805:5: error: 'else' without a previous 'if'
else wait_for_unclick = false;
^~~~
*** [.pio\build\LPC1768\src\src\lcd\ultralcd.cpp.o] Error 1
</code></pre>

<p>I am not sure what above message means, but can anyone else shed some light on why I am receiving these errors?</p>

<p>FWIW, I am using Marlin 2.</p>

[{'answer_id': 10783, 'author': 'William Jerome', 'author_id': 17262, 'author_profile': 'https://3dprinting.stackexchange.com/users/17262', 'pm_score': 2, 'selected': False, 'text': '<p>There is a temporary solution which I have found here, on the reprap forums, <a href="https://reprap.org/forum/read.php?13,857852,857876#msg-857876" rel="nofollow noreferrer">Re: Upload to the board failed after LCD enabled</a>:</p>\n\n<blockquote>\n  <p>An official fix has been posted. Grab the new ultralcd.cpp from [<a href="https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.0.x/Marlin/src/lcd/ultralcd.cpp" rel="nofollow noreferrer">github.com</a>]</p>\n</blockquote>\n\n<p>Apparently the sources contained a bug which was fixed later, a new version download fixed the problem.</p>\n'}, {'answer_id': 10787, 'author': 'Pᴀᴜʟsᴛᴇʀ2', 'author_id': 11242, 'author_profile': 'https://3dprinting.stackexchange.com/users/11242', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://marlinfw.org/meta/download/" rel="nofollow noreferrer">Marlin 2.0.0 is in an <strong><em>Alpha</em></strong> state.</a> \'Alpha\' is a state before <em>Beta</em>, meaning, it\'s not hot off the presses, it isn\'t even <em>off the presses</em>. You need to go back to the most recent "stable" version of Marlin, which is 1.1.9 (found on the same page as the link above). This should <em>most likely</em> solve the errors and problems you\'re seeing.</p>\n'}, {'answer_id': 10797, 'author': 'towe', 'author_id': 13171, 'author_profile': 'https://3dprinting.stackexchange.com/users/13171', 'pm_score': 1, 'selected': False, 'text': '<p>Marlin 2.0 is still very much in development.</p>\n\n<p>If you face issues like this and you\'re certain you haven\'t introduced any typos,\ntry downloading the most current version of Marlin again (<a href="https://github.com/MarlinFirmware/Marlin/tree/bugfix-2.0.x" rel="nofollow noreferrer">Github</a> -> Download -> Download zip).\nCopy in your configuration files and try to compile.</p>\n\n<p>If the issue persists, you may try to use a version from a few days / weeks ago.\nFor this, select a previous commit from this <a href="https://github.com/MarlinFirmware/Marlin/commits/bugfix-2.0.x" rel="nofollow noreferrer">list</a>, and press the <code>&lt;&gt;</code> button to activate it.</p>\n'}]
['https://3dprinting.stackexchange.com/questions/10781', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/17262/']