Skip to content

Commit

Permalink
add braces to single line blocks in juggled
Browse files Browse the repository at this point in the history
  • Loading branch information
Alon Levy committed Sep 3, 2010
1 parent 02b31bd commit 139a07b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions juggled/juggled_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ int main()

// set our short address - I think its eeprom, so only set it if it
// isn't that already
if (chb_get_short_addr() != JUGGLED_SHORT_ADDRESS)
if (chb_get_short_addr() != JUGGLED_SHORT_ADDRESS) {
chb_set_short_addr(JUGGLED_SHORT_ADDRESS);
}

spi_init(); // don't ask me why this is done twice. It just is. I WILL INVESTIGATE!

Expand Down Expand Up @@ -155,9 +156,13 @@ int main()
chb_init();
chb_write(STATIONARY_SHORT_ADDRESS, dat, ADXL_PACKET_LENGTH);
}
if (time_to_transmit > 0) --time_to_transmit;
if (print_flag)
printf_P(PSTR("%d %d\t%d\t%d\n"), adxl_read_count, acc_X, acc_Y, acc_Z);
if (time_to_transmit > 0) {
--time_to_transmit;
}
if (print_flag) {
printf_P(PSTR("%d %d\t%d\t%d\n"),
adxl_read_count, acc_X, acc_Y, acc_Z);
}

//_delay_ms(100);
}
Expand Down

0 comments on commit 139a07b

Please sign in to comment.