<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body dir="auto">But, as I mentioned earlier, good luck communicating that local to the outer scope. I'm pretty sure Huan would need the decls outside the switch scope for what he was attempting, but I could be wrong.<div dir="auto">Pete</div><div><br></div><div style="font-size:100%;color:#000000" dir="auto"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Rodney Radford via TriEmbed <triembed@triembed.org> </div><div>Date: 7/2/20  12:03 PM  (GMT-05:00) </div><div>To: Huan Truong <htruong@tnhh.net> </div><div>Cc: Triangle Embedded Computing Discussion <TriEmbed@triembed.org> </div><div>Subject: Re: [TriEmbed] Hacking a fake vintage radio (with Arduino + Pi 0) </div><div><br></div></div><div dir="ltr"><div dir="ltr"><div>Huan, I think I see the issue with the switch statement. Technically, you are not supposed to declare a new variable inside a case without using braces to create a new stack frame.</div><div><br></div><div>Try going back to your original code and just adding {} around each of the code sections inside of the case labels and see if that fixes the issue.</div><div><br></div><div>More info here:</div><div><br></div><div><a href="https://forum.arduino.cc/index.php?topic=627154.0">https://forum.arduino.cc/index.php?topic=627154.0</a><br><br></div></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Wed, Jun 24, 2020 at 12:44 PM Huan Truong via TriEmbed <<a href="mailto:triembed@triembed.org">triembed@triembed.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">This has taken me way more time than I thought, but finishing this<br>
retrofit is a big achievement for me. It's really silly and serves<br>
exactly no purpose other than RE'ing something no one cares about.  So<br>
I just want to share for some shits and giggles.<br>
<br>
<a href="http://www.tnhh.net/posts/adventures-hacking-fake-vivitar-vintage-radio.html" target="_blank" rel="noreferrer">http://www.tnhh.net/posts/adventures-hacking-fake-vivitar-vintage-radio.html</a><br>
<br>
<br>
<br>
<br>
<br>
-- <br>
<br>
Huan Truong<br>
www <a href="http://tnhh.net" target="_blank" rel="noreferrer">tnhh.net</a> / twitter @huant<br>
<br>
_______________________________________________<br>
Triangle, NC Embedded Computing mailing list<br>
<br>
To post message: <a href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a><br>
List info: <a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" target="_blank" rel="noreferrer">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" target="_blank" rel="noreferrer">http://TriEmbed.org</a><br>
To unsubscribe, click link and send a blank message: mailto:<a href="mailto:unsubscribe-TriEmbed@bitser.net" target="_blank">unsubscribe-TriEmbed@bitser.net</a>?subject=unsubscribe<br>
<br>
</blockquote></div>
</body></html>