mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Make USB/WEB debug configurable
This commit is contained in:
parent
a1e5bc57d0
commit
aa9a4d429e
14 changed files with 115 additions and 162 deletions
|
@ -64,7 +64,7 @@ void setup() {
|
|||
|
||||
init_serial();
|
||||
|
||||
// We print this after setting up serial, such that is also printed to serial with DEBUG_VIA_USB set.
|
||||
// We print this after setting up serial, so that is also printed if configured to do so
|
||||
logging.printf("Battery emulator %s build " __DATE__ " " __TIME__ "\n", version_number);
|
||||
|
||||
init_events();
|
||||
|
@ -352,9 +352,6 @@ void init_serial() {
|
|||
// Init Serial monitor
|
||||
Serial.begin(115200);
|
||||
while (!Serial) {}
|
||||
#ifdef DEBUG_VIA_USB
|
||||
Serial.println("__ OK __");
|
||||
#endif // DEBUG_VIA_USB
|
||||
}
|
||||
|
||||
void check_interconnect_available() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue