Skip to content

Commit

Permalink
fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Sep 27, 2024
1 parent 24bfa8c commit fd92a51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/posix/timer_ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ struct MyReactor {
Trigger *_triggers[1];
};

void reaction_0_body(struct MyReactor* self, MyTimer* my_timer) {
void reaction_0_body(struct MyReactor *self, MyTimer *my_timer) {
printf("Hello World @ %ld\n", self->super.env->current_tag.time);
}

void reaction_0_wrapper(Reaction *_self) {
struct MyReactor *self = (struct MyReactor *)_self->parent;
MyTimer* my_timer = &self->timer;
MyTimer *my_timer = &self->timer;

reaction_0_body(self, my_timer);
}
Expand Down
2 changes: 1 addition & 1 deletion src/platform/riot.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

static PlatformRiot platform;

#define USEC_TO_NSEC(usec) ((usec)*USEC(1))
#define USEC_TO_NSEC(usec) ((usec) * USEC(1))
#define NSEC_TO_USEC(nsec) ((nsec) / USEC(1))

void PlatformRiot_initialize(Platform *self) {
Expand Down
2 changes: 1 addition & 1 deletion src/reactor.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "reactor-uc/reactor.h"
#include "reactor-uc/builtin_triggers.h"
#include "reactor-uc/environment.h"
#include "reactor-uc/reactor.h"

#include <string.h>

Expand Down

0 comments on commit fd92a51

Please sign in to comment.