Skip to content

Commit

Permalink
Merge pull request RIOT-OS/applications#46 from smlng/pr/uncrustify
Browse files Browse the repository at this point in the history
uncrustify: fix existing applications
  • Loading branch information
miri64 authored Oct 2, 2018
2 parents ca9dea3 + a62839b commit bb49847
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sniffer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int main(void)
/* start and register rawdump thread */
puts("Run the rawdump thread and register it");
dump.target.pid = thread_create(rawdmp_stack, sizeof(rawdmp_stack), RAWDUMP_PRIO,
THREAD_CREATE_STACKTEST, rawdump, NULL, "rawdump");
THREAD_CREATE_STACKTEST, rawdump, NULL, "rawdump");
dump.demux_ctx = GNRC_NETREG_DEMUX_CTX_ALL;
gnrc_netreg_register(GNRC_NETTYPE_UNDEF, &dump);

Expand Down
6 changes: 3 additions & 3 deletions spectrum-scanner/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ void spectrum_scanner(unsigned long interval_us)
* no-op (baseline) | 83 (but the measurements are useless)
*/

while(1) {
while (1) {
/* Stack optimization, statically allocate this buffer */
static float ed_average[GNRC_NETIF_NUMOF][IEEE802154_CHANNEL_MAX+1];
static float ed_average[GNRC_NETIF_NUMOF][IEEE802154_CHANNEL_MAX + 1];

memset(ed_average, 0, sizeof(ed_average));

Expand Down Expand Up @@ -115,7 +115,7 @@ void spectrum_scanner(unsigned long interval_us)
}
++count;
thread_yield();
} while(xtimer_now_usec64() < target);
} while (xtimer_now_usec64() < target);
for (unsigned int k = 0; k < netif_numof; ++k) {
print("[", 1);
print_u32_dec(k);
Expand Down

0 comments on commit bb49847

Please sign in to comment.