<h3>Contribution description</h3>
<p>This PR is a fix that prevent the semtech-loramac stack from being initialized twice in the <code>tests/pkg_semtech-loramac</code> application. In fact, the init function is a first time from auto_init and a second time from the main function of the application. The fix simply consists in removing the latter.</p>

<h3>Testing procedure</h3>
<ul>
<li>Enable debug in <code>semtech-loramac.c</code></li>
<li>Flash and run the <code>tests/pkg_semtech-loramac</code> application</li>
<li>With this PR, one can noticed the stack is initialized once, on master it's initialized twice.</li>
<li>Also don't forget to verify that the application features still work: join, send, receive, etc</li>
</ul>

<h3>Issues/PRs references</h3>
<p>Found while debugging <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="451934434" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/11626" data-hovercard-type="issue" data-hovercard-url="/RIOT-OS/RIOT/issues/11626/hovercard" href="https://github.com/RIOT-OS/RIOT/issues/11626">#11626</a></p>


<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/11777'>https://github.com/RIOT-OS/RIOT/pull/11777</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>tests/pkg_semtech-loramac: don't init mac from main</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11777/files#diff-0">tests/pkg_semtech-loramac/main.c</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11777.patch'>https://github.com/RIOT-OS/RIOT/pull/11777.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11777.diff'>https://github.com/RIOT-OS/RIOT/pull/11777.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11777?email_source=notifications&email_token=ABE7WYB5YW6UMHRLO5W2H2LP5SNXNA5CNFSM4H5FOMO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G5EAICQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFFJS553HNFCQ7XKUDP5SNXNANCNFSM4H5FOMOQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYAUTZLKSCJBAAGLS6TP5SNXNA5CNFSM4H5FOMO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G5EAICQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11777?email_source=notifications\u0026email_token=ABE7WYB5YW6UMHRLO5W2H2LP5SNXNA5CNFSM4H5FOMO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G5EAICQ",
"url": "https://github.com/RIOT-OS/RIOT/pull/11777?email_source=notifications\u0026email_token=ABE7WYB5YW6UMHRLO5W2H2LP5SNXNA5CNFSM4H5FOMO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G5EAICQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>