From: Adrian Weber Date: Thu, 16 Apr 2020 10:08:23 +0000 (+0200) Subject: DCDC_rich: fixed switch control for loopback without jumper. X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=a62371a902ed67ddaa40937bfe93bdc6d098e6d9;p=avr.git DCDC_rich: fixed switch control for loopback without jumper. --- diff --git a/atmega32u4/dcdc_rich/README.md b/atmega32u4/dcdc_rich/README.md index 57e6201..6e345b8 100644 --- a/atmega32u4/dcdc_rich/README.md +++ b/atmega32u4/dcdc_rich/README.md @@ -58,3 +58,5 @@ close with a "\n", so a correct data fromat would be e.g. "RF2012FE51\n" The DCDC boards receives messages over UART and microUSB. It sends out the messaages *just* over UART. The UART Baud rate is 57600. For a controlled communication, please use the perl script *./dcdc.pl*. + +If the command is supposed to switch the Switch (Loopback without jumper) then the dcdc.pl fails by checking the length because the answer can't copme back. For now, change the lince in the script (line 179: to "$num=1;"). diff --git a/atmega32u4/dcdc_rich/main.c b/atmega32u4/dcdc_rich/main.c index 14249f7..4e2a520 100644 --- a/atmega32u4/dcdc_rich/main.c +++ b/atmega32u4/dcdc_rich/main.c @@ -25,8 +25,8 @@ #define SHIFT_EN_OUTPUT() PORTF &= ~(1<