Skip to content

Commit

Permalink
Revert "Foo"
Browse files Browse the repository at this point in the history
  • Loading branch information
scaprile authored Aug 10, 2023
1 parent cacab6f commit 3721bcc
Show file tree
Hide file tree
Showing 35 changed files with 14 additions and 1,629 deletions.
8 changes: 4 additions & 4 deletions examples/device-dashboard/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ uint64_t mg_now(void) {
int ui_event_next(int no, struct ui_event *e) {
if (no < 0 || no >= MAX_EVENTS_NO) return 0;

srand((unsigned) no);
srand(no);
e->type = (uint8_t) rand() % 4;
e->prio = (uint8_t) rand() % 3;
e->timestamp =
(unsigned long) ((int64_t) mg_now() - 86400 * 1000 /* one day back */ +
(unsigned long) (mg_now() - 86400 * 1000 /* one day back */ +
no * 300 * 1000 /* 5 mins between alerts */ +
1000 * (rand() % 300) /* randomize event time */) /
1000UL;
1000;

mg_snprintf(e->text, MAX_EVENT_TEXT_SIZE, "event#%d", no);
return no + 1;
Expand Down Expand Up @@ -163,7 +163,7 @@ static void handle_stats_get(struct mg_connection *c) {
static size_t print_events(void (*out)(char, void *), void *ptr, va_list *ap) {
size_t len = 0;
struct ui_event ev;
int pageno = va_arg(*ap, int);
int pageno = va_arg(*ap, unsigned);
int no = (pageno - 1) * EVENTS_PER_PAGE;
int end = no + EVENTS_PER_PAGE;

Expand Down
56 changes: 0 additions & 56 deletions examples/microchip/same54/Makefile

This file was deleted.

219 changes: 0 additions & 219 deletions examples/microchip/same54/hal.h

This file was deleted.

25 changes: 0 additions & 25 deletions examples/microchip/same54/link.ld

This file was deleted.

Loading

0 comments on commit 3721bcc

Please sign in to comment.