From: Adrian Weber Date: Thu, 20 Feb 2020 15:11:43 +0000 (+0100) Subject: fix answer mechanism for DCDC converter X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=8e92178f29eb3c1bb63e9b89e5528932ccd08225;p=avr.git fix answer mechanism for DCDC converter --- diff --git a/atmega32u4/dcdc_rich/Makefile b/atmega32u4/dcdc_rich/Makefile index c5b29c2..8ee15d8 100644 --- a/atmega32u4/dcdc_rich/Makefile +++ b/atmega32u4/dcdc_rich/Makefile @@ -11,7 +11,7 @@ TARGET = main SRC = $(TARGET).c usb_serial.c ASRC = OPT = 2 -PORT=/dev/ttyACM1 +PORT=/dev/ttyACM0 # Name of this Makefile (used for "make depend"). MAKEFILE = Makefile diff --git a/atmega32u4/dcdc_rich/main.c b/atmega32u4/dcdc_rich/main.c index 91d3b4b..321a933 100644 --- a/atmega32u4/dcdc_rich/main.c +++ b/atmega32u4/dcdc_rich/main.c @@ -87,7 +87,7 @@ void forward_msg(uint8_t i) { uint8_t is_my_address(uint8_t s) { if (ISMYADDR()) { - rxbuf[2] -= '0'; // write number to buffer, instead of ascii. + //rxbuf[2] -= '0'; // write number to buffer, instead of ascii. return 1; } else { forward_msg(s);