mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Add USB debug while developing
This commit is contained in:
parent
6fd3f200b5
commit
4b01b1235d
2 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,7 @@ void send_kostal(byte* arr, int alen) {
|
||||||
Serial.print("TX: ");
|
Serial.print("TX: ");
|
||||||
for (int i = 0; i < alen; i++) {
|
for (int i = 0; i < alen; i++) {
|
||||||
if (arr[i] < 0x10) {
|
if (arr[i] < 0x10) {
|
||||||
Serial.print("0")
|
Serial.print("0");
|
||||||
}
|
}
|
||||||
Serial.print(arr[i], HEX);
|
Serial.print(arr[i], HEX);
|
||||||
Serial.print(" ");
|
Serial.print(" ");
|
||||||
|
|
|
@ -4,5 +4,6 @@
|
||||||
#include "../include.h"
|
#include "../include.h"
|
||||||
|
|
||||||
#define RS485_INVERTER_SELECTED
|
#define RS485_INVERTER_SELECTED
|
||||||
|
#define DEBUG_KOSTAL_RS485_DATA
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue