Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

uncrustify: fix existing applications #46

Merged
merged 2 commits into from
Oct 2, 2018
Merged
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
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