Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/Kernel/LowPowerTimerDriverP.nc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ implementation

void enqueue_cb(uint16_t idx)
{
if ((cb_widx + 1) & (CBQUEUESIZE-1) == cb_ridx)
if (((cb_widx + 1) & (CBQUEUESIZE - 1)) == cb_ridx)
return; //drop
callback_queue[cb_widx] = timer_buffer[idx].cb;
cb_widx = (cb_widx+1) & (CBQUEUESIZE-1);
Expand Down Expand Up @@ -188,4 +188,4 @@ implementation
post update_queues();
}

}
}
2 changes: 1 addition & 1 deletion apps/Kernel/StormSimpleGPIOP.nc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ implementation
uint8_t port = arg0 >> 8;
uint8_t pin = arg0 & 0xFF;
uint32_t pinmask = 1 << (arg0 & 0xFF);
if ((irq_allowed[port] & pinmask == 0))
if ((irq_allowed[port] & pinmask) == 0)
return (uint32_t) -1;
irq_callback[port][pin].addr = arg2;
irq_callback[port][pin].r = (void*) argx[0];
Expand Down
2 changes: 1 addition & 1 deletion apps/Kernel/TimerDriverP.nc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ implementation
}
case 0x05: //cancel(id) ->int32 0 for ok -1 for fail
{
if (arg0 >= BUFSIZE) return (uint32_t)-1;
if (arg0 >= BUFSIZE) return (uint32_t) -1;
if (timer_buffer[arg0].flags == 0) return (uint32_t) -2;
timer_buffer[arg0].flags = 0;
return 0;
Expand Down