Merge pull request #54 from OleLL/master
Fixed a few things in Colorchord Embeddedlinux
This commit is contained in:
commit
6c6f6cb13d
|
@ -7,7 +7,7 @@ LDFLAGS:= -s -Wl,--relax -Wl,-Map=test.map -Wl,--gc-sections -ffunction-section
|
||||||
|
|
||||||
|
|
||||||
embeddedcc : ../embeddedcommon/embeddednf.c ../embeddedcommon/DFT32.c embeddedcc.c ../embeddedcommon/embeddedout.c
|
embeddedcc : ../embeddedcommon/embeddednf.c ../embeddedcommon/DFT32.c embeddedcc.c ../embeddedcommon/embeddedout.c
|
||||||
gcc -o $@ $^ $(CFLAGS) $(LDFLAGS) -m32
|
gcc -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
||||||
|
|
||||||
dummy_leds : dummy_leds.c
|
dummy_leds : dummy_leds.c
|
||||||
gcc -o $@ $^ -lX11 -lpthread $(CFLAGS) $(LDFLAGS)
|
gcc -o $@ $^ -lX11 -lpthread $(CFLAGS) $(LDFLAGS)
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h> // Added by [olel] for atoi
|
||||||
#include "embeddedout.h"
|
#include "embeddedout.h"
|
||||||
|
|
||||||
struct sockaddr_in servaddr;
|
struct sockaddr_in servaddr;
|
||||||
|
@ -64,7 +65,7 @@ int main( int argc, char ** argv )
|
||||||
|
|
||||||
connect( sock, (struct sockaddr *)&servaddr, sizeof(servaddr) );
|
connect( sock, (struct sockaddr *)&servaddr, sizeof(servaddr) );
|
||||||
|
|
||||||
Init();
|
InitColorChord(); // Changed by [olel] cause this was changed in embeddednf
|
||||||
|
|
||||||
while( ( ci = getchar() ) != EOF )
|
while( ( ci = getchar() ) != EOF )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue