Added output in bytes to serial
This commit is contained in:
@@ -110,12 +110,15 @@ void setup(){
|
|||||||
|
|
||||||
void loop(){
|
void loop(){
|
||||||
static bool led_wrk = false;
|
static bool led_wrk = false;
|
||||||
|
uint8_t in_b;
|
||||||
|
|
||||||
ArduinoOTA.handle();
|
ArduinoOTA.handle();
|
||||||
crc = 0;
|
crc = 0;
|
||||||
offset = 0;
|
offset = 0;
|
||||||
while(softSer.available()){
|
while(softSer.available()){
|
||||||
readByte(softSer.read());
|
in_b = softSer.read();
|
||||||
|
Serial.print(in_b, 16);
|
||||||
|
readByte(in_b);
|
||||||
}
|
}
|
||||||
if(cRun + 999 < millis()){
|
if(cRun + 999 < millis()){
|
||||||
cRun = millis();
|
cRun = millis();
|
||||||
@@ -268,6 +271,7 @@ void readByte(uint8_t data) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Serial.println();
|
||||||
Serial.println(cur_operation);
|
Serial.println(cur_operation);
|
||||||
//publish_state();
|
//publish_state();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user