diff core/PRU.cpp @ 307:ff5f346a293e prerelease

Changed BelaContext fields to be const where appropriate; there's now an InternalBelaContext used for setting the values within the core code. These need to stay aligned.
author andrewm
date Fri, 27 May 2016 18:12:15 +0100
parents 421a69d42943
children 493a07f6ec09
line wrap: on
line diff
--- a/core/PRU.cpp	Fri May 27 18:00:57 2016 +0100
+++ b/core/PRU.cpp	Fri May 27 18:12:15 2016 +0100
@@ -111,7 +111,7 @@
 extern int gRTAudioVerbose;
 
 // Constructor: specify a PRU number (0 or 1)
-PRU::PRU(BelaContext *input_context)
+PRU::PRU(InternalBelaContext *input_context)
 : context(input_context), pru_number(0), running(false), analog_enabled(false),
   digital_enabled(false), gpio_enabled(false), led_enabled(false),
   mux_channels(0),
@@ -630,7 +630,7 @@
 
 		// Call user render function
         // ***********************
-		render(context, userData);
+		render((BelaContext *)context, userData);
 		// ***********************
 
 		if(analog_enabled) {