Merge branch 'nano-revision-2.0' into nano-revision-2.1
This commit is contained in:
@@ -18,11 +18,12 @@
|
||||
#define Max485_DI 9 // data input of Max485
|
||||
|
||||
#define TRESHOLD 1024
|
||||
#define ID 0
|
||||
#define ID 4
|
||||
// 0=Test
|
||||
// 1=Arbeitszimmer
|
||||
// 2=Küche
|
||||
// 3=Bad
|
||||
// 4=Treppenhaus
|
||||
|
||||
//#define LOG_TO_SERIAL
|
||||
#define SEND_485
|
||||
|
||||
@@ -26,7 +26,7 @@ void setup() {
|
||||
|
||||
void loop() {
|
||||
if (available485()) Serial.println(get485message());
|
||||
if (Serial.available()) {
|
||||
while (Serial.available()) {
|
||||
c = (char)Serial.read();
|
||||
if (c == '\n') {
|
||||
send485(message.c_str());
|
||||
|
||||
Reference in New Issue
Block a user