Skip to content

Commit

Permalink
Brian's latest update to wiring.c for issue #143
Browse files Browse the repository at this point in the history
  • Loading branch information
ricklon committed Nov 21, 2011
1 parent e333fb8 commit cd0dfc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/pic32/cores/pic32/wiring.c
Expand Up @@ -241,7 +241,8 @@ void _board_init(void);

void __ISR(_CORE_TIMER_VECTOR, ipl2) CoreTimerHandler(void)
{
uint32_t compare, count, millisLocal;
static uint32_t compare = 0;
uint32_t count, millisLocal;
uint32_t softPWMreturnFlag = 1;

millisLocal = gTimer0_millis; // defeat volatility
Expand All @@ -255,7 +256,6 @@ void __ISR(_CORE_TIMER_VECTOR, ipl2) CoreTimerHandler(void)

if (softPWMreturnFlag)
{
read_comp(compare);
// Handle updates that need to happen at the 1ms rate:
do {
millisLocal++; /* At least one tick */
Expand Down

0 comments on commit cd0dfc1

Please sign in to comment.