Commit 5bb303db authored by Ivan Tyagov's avatar Ivan Tyagov

Cosmetics.

parent cecf0dac
......@@ -5,14 +5,14 @@ EXTRA_FLAGS=$(C_COMPILER_EXTRA_FLAGS)
OUT_DIR= bin
server: server.c
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) -std=c99 $(EXTRA_FLAGS)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) -std=c99 $(EXTRA_FLAGS)
install:
mkdir -p $(OUT_DIR)
@cp server $(OUT_DIR)/
@rm server
mkdir -p $(OUT_DIR)
@cp server $(OUT_DIR)/
@rm server
clean:
@rm $(OUT_DIR)/server 2>/dev/null || true
@rm $(OUT_DIR)/server 2>/dev/null || true
.PHONY: clean
......@@ -204,5 +204,3 @@ void handleCLI(int argc, char **argv) {
if (s != NULL) CURRENT_GPIO_MODE = atoi(s);
printf("GPIO measurement mode = %d\n", CURRENT_GPIO_MODE);
}
/* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
* See http://creativecommons.org/publicdomain/zero/1.0/for more information. */
#define countof(a) (sizeof(a)/sizeof(*(a)))
#include <sys/time.h>
......
......@@ -56,5 +56,3 @@ static int setGPIO() {
close(led.fd);
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment