Error when compiling InitialInternalMemory

Post Reply
carlii
Posts: 91
Joined: Sat Mar 17, 2012 7:22 pm

Re: Error when compiling InitialInternalMemory

Post by carlii »

Ok the internal code above complies now, but I do I use these new dosing pump functions?

Also how do I add code for the third dosing pump?

How does the old intenal memory code:

InternalMemory.DP1RepeatInterval_write( 360 );
InternalMemory.DP1Timer_write( 8 );
InternalMemory.DP2RepeatInterval_write( 360 );
InternalMemory.DP2Timer_write( 8 );

translate into teh new internal memory code:

InternalMemory.DP1OnHour_write(360);
InternalMemory.DP1OnMinute_write(8);
InternalMemory.DP2OnHour_write(360);
InternalMemory.DP2OnMinute_write(8);
InternalMemory.DP1Timer_write(4);
InternalMemory.DP2Timer_write(4);
InternalMemory.DP1RepeatInterval_write(60);
InternalMemory.DP2RepeatInterval_write(60);
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Error when compiling InitialInternalMemory

Post by rimai »

They are the same thing...
For the 3rd doser, you can use this:

Code: Select all

 InternalMemory.DP3Timer_write(4);
 InternalMemory.DP3RepeatInterval_write(60);
Roberto.
carlii
Posts: 91
Joined: Sat Mar 17, 2012 7:22 pm

Re: Error when compiling InitialInternalMemory

Post by carlii »

So do I just ignore the dpon hour and minute?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Error when compiling InitialInternalMemory

Post by rimai »

Yeah, those memory locations are only used for a single dose schedule.
Roberto.
Post Reply