From a62371a902ed67ddaa40937bfe93bdc6d098e6d9 Mon Sep 17 00:00:00 2001 From: Adrian Weber Date: Thu, 16 Apr 2020 12:08:23 +0200 Subject: [PATCH] DCDC_rich: fixed switch control for loopback without jumper. --- atmega32u4/dcdc_rich/README.md | 2 ++ atmega32u4/dcdc_rich/main.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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<