Skip to content

Commit

Permalink
Enabling broadcasting. Removed Time class.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBleijendaal committed Jul 23, 2016
1 parent 41d5867 commit 0195423
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Arduino/Edt_Trak_v1/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Using PlatformIO
#include "Ethernet.h"
#include "EthernetUdp.h"
#include "OSC.h"
#include "Time.h"
//#include "Time.h"
#include "Statemachine.h"
#include "Preset.h"

Expand All @@ -30,7 +30,7 @@ void loop() {
Statemachine.loop();

if (Statemachine.isBegin()) {
Time.begin();
//Time.begin();

#ifdef DEBUG
Serial.begin(9600);
Expand Down Expand Up @@ -61,11 +61,10 @@ void loop() {
Serial.println("Starting code..");
#endif

OSC.bindUDP(&Udp, IPAddress(10, 0, 0, 200), PORT_BROADCAST);
//OSC.bindUDP(&Udp, IP_BROADCAST, PORT_BROADCAST);
//OSC.bindUDP(&Udp, IPAddress(10, 0, 0, 200), PORT_BROADCAST);
OSC.bindUDP(&Udp, IP_BROADCAST, PORT_BROADCAST);
OSC.addSource(&Trak);


#ifdef DEBUG
Serial.println("Started code.");
#endif
Expand All @@ -75,7 +74,7 @@ void loop() {
}
else {
while (Statemachine.isRun()) {
Time.loop();
//Time.loop();
OSC.loop();
}
}
Expand Down

0 comments on commit 0195423

Please sign in to comment.