From 718442a4390b70ef4b961333472d26911ea91ff4 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Tue, 8 Oct 2013 22:26:32 +0000 Subject: [PATCH] stuff --- rf433rcv/pc/data2sample.pl | 2 +- rf433rcv/pc/plot.py | 2 +- rf433rcv/pc/uncompress.c | 3 ++- rf433rcv/teensy/Makefile | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rf433rcv/pc/data2sample.pl b/rf433rcv/pc/data2sample.pl index 2690012..20ae460 100755 --- a/rf433rcv/pc/data2sample.pl +++ b/rf433rcv/pc/data2sample.pl @@ -6,7 +6,6 @@ my @input= split //,<>; print 1 x $base; print 0 x (31 * $base); - for my $current (@input) { if ($current) @@ -18,3 +17,4 @@ for my $current (@input) print 0 x (3*$base); } } + diff --git a/rf433rcv/pc/plot.py b/rf433rcv/pc/plot.py index 74553f6..79d19b9 100755 --- a/rf433rcv/pc/plot.py +++ b/rf433rcv/pc/plot.py @@ -4,7 +4,7 @@ import fileinput import numpy import pylab for datastr in fileinput.input(): - data=numpy.array(list(datastr)) + data=numpy.array(map(int,datastr)) pylab.plot(range(len(datastr)),data) pylab.hold(True) pylab.axis([0, len(datastr),-0.5, 3.5]) diff --git a/rf433rcv/pc/uncompress.c b/rf433rcv/pc/uncompress.c index 14d20b8..1ae88ad 100644 --- a/rf433rcv/pc/uncompress.c +++ b/rf433rcv/pc/uncompress.c @@ -2,7 +2,8 @@ #include #include -#define MAX_RAM 502 +//#define MAX_RAM 502 +#define MAX_RAM 1004 void main() { diff --git a/rf433rcv/teensy/Makefile b/rf433rcv/teensy/Makefile index df03245..ee652f7 100644 --- a/rf433rcv/teensy/Makefile +++ b/rf433rcv/teensy/Makefile @@ -444,7 +444,7 @@ gccversion : # Program the device. program: $(TARGET).hex $(TARGET).eep ../pc/reset || true - ~/teensy_loader_cli/teensy_loader_cli -mmcu=atmega32u4 -w $(TARGET).hex + ~/realraum/teensy/teensy_loader_cli/teensy_loader_cli -mmcu=atmega32u4 -w $(TARGET).hex # Generate avr-gdb config/init file which does the following: -- 1.7.10.4