<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 03/11/2018 12:01 PM, Alex Davis via TriEmbed wrote:<br>
<blockquote type="cite"
cite="mid:5BB2EEFE-0F0F-4D41-850E-F75B8CE54374@matrixwide.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">
<div class="">Despite having detached the INT2 interrupt,
are you still inside the <br class="">
handler for that interrupt when you enter the code
dependent on <br class="">
millis()? If you're in an interrupt handler, millis()
cannot work, <br class="">
because it's dependent on an interrupt that you are
holding off forever.<br class="">
-Pete<br class="">
</div>
</div>
</blockquote>
<br class="">
</div>
<div>All I do in the handler is detach the interrupt.</div>
</blockquote>
This is the point in other forums where somebody would yell at you
for not showing us enough of your code. :-)<br>
<br>
I studied the detachInterrupt code for the 32U4 and it does just
what one would expect: clears the enable register bit for the given
interrupt number. You're sure you're giving it the correct interrupt
number and not the pin number, right? If that was mixed up then
every time you pushed the button you'd still be getting another
interrupt. If it's a level interrupt vs edge triggered, then that
would explain the hang until you released the button ('cause every
time you left the handler the interrupt would occur again while the
button was pressed).<br>
<br>
-Pete<br>
<br>
<br>
<blockquote type="cite"
cite="mid:5BB2EEFE-0F0F-4D41-850E-F75B8CE54374@matrixwide.com">
<div><br class="">
</div>
<div>Somehow my LIS3DH died so I have to order another before I
can continue troubleshooting.</div>
<div><br class="">
</div>
<div>I also have a <span style="background-color: rgb(255, 255,
255);" class=""><font class="" face="proxima nova, lucida
grande, lucida sans unicode, lucida sans, Geneva, Verdana,
sans-serif"><span style="font-size: 14px; letter-spacing:
0.2800000011920929px;" class="">SEGGER J-Link EDU Mini on
the way. I’ll get to the bottom of this eventually.</span></font></span></div>
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Monaco;
font-style: normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;" class=""><br
class="Apple-interchange-newline">
|\ | (¯ \/ |¯\ |V| |\ ¯|¯ |¯) | \/ | | | |¯\ (¯ /¯ /\
|V|</div>
<div style="color: rgb(0, 0, 0); font-family: Monaco;
font-style: normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;" class="">|-||_ (_ /\ |_/ @|
| |-| | | \ | /\ |^| | |_/ (_ . \_ \/ | |</div>
<br style="color: rgb(0, 0, 0); font-family: Monaco; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;" class="">
<br style="color: rgb(0, 0, 0); font-family: Monaco; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;" class="">
<br style="color: rgb(0, 0, 0); font-family: Monaco; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;" class="">
<br style="color: rgb(0, 0, 0); font-family: Monaco; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;" class="">
<br style="color: rgb(0, 0, 0); font-family: Monaco; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;" class="">
<br style="color: rgb(0, 0, 0); font-family: Monaco; font-style:
normal; font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;" class="">
</div>
<br class="">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Triangle, NC Embedded Computing mailing list
To post message: <a class="moz-txt-link-abbreviated" href="mailto:TriEmbed@triembed.org">TriEmbed@triembed.org</a>
List info: <a class="moz-txt-link-freetext" href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a>
TriEmbed web site: <a class="moz-txt-link-freetext" href="http://TriEmbed.org">http://TriEmbed.org</a>
To unsubscribe, click link and send a blank message: <a class="moz-txt-link-freetext" href="mailto:unsubscribe-TriEmbed@bitser.net?subject=unsubscribe">mailto:unsubscribe-TriEmbed@bitser.net?subject=unsubscribe</a>
</pre>
</blockquote>
<br>
</body>
</html>