From db04e2fb861ed7ccef5a7339e9860ca5c2590a7c Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 10 Jan 2011 20:39:51 +0100 Subject: In-synth-cli can now (re)load programs. maybe SEGFAULTING? --- synth/in_synth_cli.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'synth/in_synth_cli.cpp') diff --git a/synth/in_synth_cli.cpp b/synth/in_synth_cli.cpp index 4334978..a21e1f7 100644 --- a/synth/in_synth_cli.cpp +++ b/synth/in_synth_cli.cpp @@ -8,6 +8,7 @@ #include "util.h" #include "communication.h" #include "globals.h" +#include "load.h" using namespace std; @@ -49,8 +50,16 @@ void lock_and_load_program(int prg_no, string file) { do_request(prg_no, true); - //TODO load the program - usleep(5000000); + if (load_program(file,program_settings[prg_no])) + { + cout << "success" << endl; + programfile[prg_no]=file; + } + else + cout << "failed" << endl; + + for (int i=0;imaybe_reload_program(prg_no); do_request(prg_no, false); } -- cgit v1.2.3