Hi Thorsten
Thanks for the tip.
I have incorporated the line in my case statement 2 the following.
case (2) ://Read EEprom dependent on Memory pin selected. Set Memory Led in Radio Button Mode. For each stored group change to EEprom value. //Trigger SetLed_No Dump or SetLed_SendDump as appropriate. Read section of EEprom dependent on Memory Buttom pressed.
{
r =(pin-1<< 5) + 10;// determines the memory location which is dependent on Memory pin.
DIN_NotifyToggle((MIOS_EEPROM_Read ®), 0);//1st location, pedal group
DIN_NotifyToggle((MIOS_EEPROM_Read ®), 1); //this was a trial to see if it was necessary to release pin … made no difference
DIN_NotifyToggle((MIOS_EEPROM_Read (r+1)), 0);//2nd location causes system resets in Midi_ox.
SendNote(0xB0, 0x02,MIOS_EEPROM_Read(r+1));//test
//SendNote(0xB0, 0x03,0x24); test
//////following is the code to set Memory group Led’s when Record button not pressed.
//stored_pin = memory_group_stored_pin;// change value of stored pin to the memory group stored value
//stored_pin = SetLed_NoDump(1, 5, 9, stored_pin, pin, pin_value); //function, set pin_low to 0, pin_high to 5, canc_pin to 9
//memory_group_stored_pin = stored_pin;//resets the variable for this group to the current stored pin after the function above.
}
break;
On it’s own the first Din_Toggle works to a large extent. However this is only the pedal group and I need to send a total of 12 similar Din_Toggles. When the second Din_Toggle is added the system generates repeated System resets.
I am conscious that the sending of sysex messages is quite long (in my case) and that there needs to be more control. In other words I do not know what I’m doing!
Please give me another pointer.
Regards Robin
Since sending this query I wonder whether there is a basic problem in calling a function from within the same function. This is what I am attempting.