<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/16577">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">qmod: Don't print EEPROM operations in help when not supported<br><br>As of Change-Id I1c8cca2f7f0f0070d7bf1ade676e035c45e4d5ab, a firmware<br>compiled without ALLOW_PEER_ERASE will not support resetting the hub or<br>writing to its EEPROM.  Let's make sure to remove those options also<br>from the menu.<br><br>Change-Id: I3071332d85e6168947384ddc230298d3293e4668<br>---<br>M firmware/libboard/qmod/source/board_qmod.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/77/16577/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/firmware/libboard/qmod/source/board_qmod.c b/firmware/libboard/qmod/source/board_qmod.c</span><br><span>index 0b03180..900a3bc 100644</span><br><span>--- a/firmware/libboard/qmod/source/board_qmod.c</span><br><span>+++ b/firmware/libboard/qmod/source/board_qmod.c</span><br><span>@@ -205,13 +205,17 @@</span><br><span>                 printf("\tg\tswitch off LED 2\n\r");</span><br><span>               printf("\tG\tswitch off LED 2\n\r");</span><br><span>               if (qmod_sam3_is_12()) {</span><br><span style="color: hsl(120, 100%, 40%);">+#if (ALLOW_PEER_ERASE > 0)</span><br><span>                      printf("\tE\tprogram EEPROM\n\r");</span><br><span>                         printf("\te\tErase EEPROM\n\r");</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span>                   printf("\tO\tEnable PRTPWR_OVERRIDE\n\r");</span><br><span>                         printf("\to\tDisable PRTPWR_OVERRIDE\n\r");</span><br><span style="color: hsl(120, 100%, 40%);">+#if (ALLOW_PEER_ERASE > 0)</span><br><span>                         printf("\tH\tRelease HUB RESET (high)\n\r");</span><br><span>                       printf("\th\tAssert HUB RESET (low)\n\r");</span><br><span>                         printf("\tw\tWrite single byte in EEPROM\n\r");</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span>                    printf("\tr\tRead single byte from EEPROM\n\r");</span><br><span>           }</span><br><span>            printf("\tX\tRelease peer SAM3 from reset\n\r");</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/simtrace2/+/16577">change 16577</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/simtrace2/+/16577"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3071332d85e6168947384ddc230298d3293e4668 </div>
<div style="display:none"> Gerrit-Change-Number: 16577 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>