reading this right? :: Possible the LTO code order/timing is different, and one way works on timing and the other does not? Either way it is on a hairy edge for the Flash chip?Is it possible the flash chips aren't happy with the changes to CSINTERVAL/TCSH/TCSS for port 2 (causing intermittent failures when accessed in a particular manner) ?
#if defined(DMA_DCHPRI_DPA)). If you could persuade @jmarsh to create a PR, and pull it in, that would be ideal.
useFileSystemIndexFileStore(MTPStorage::INDEX_STORE_MEM_FILE)
send_StoreRemovedEvent(handle) followed by storage()->removeFilesystem(handle) but now both of those functions are private/removed.Any estimate when 1.60 will be released?
void setup() {
int x,y,z;
Serial.begin(9600);
while (!Serial)
;
x=2;
y=0;
while(x>y){
y=x; //keep the last value
x*=2;
}
Serial.printf("\nwhile(x>y) correctly exits after multiplies when %d < %d\n", x, y);
y=2*y-5; //make it less than double
x=y+1;
z=5;
Serial.println("\nbut only works after add on T4.1 if optimize is set to fast.");
Serial.printf("x=%d, y=%d z=%d\n",x,y,z);
while(x>0 && z>0){
y=x;
x+=1;
z-=1;
Serial.printf("x=%d, y=%d z=%d",x,y,z);
if(z==1){
Serial.println("<-should have exited here");
}else{
Serial.println();
}
}
}
void loop() {
}
while(x>y) correctly exits after multiplies when -2147483648 < 1073741824
but only works after add on T4.1 if optimize is set to fast.
x=2147483644, y=2147483643 z=5
x=2147483645, y=2147483644 z=4
x=2147483646, y=2147483645 z=3
x=2147483647, y=2147483646 z=2
x=-2147483648, y=2147483647 z=1<-should have exited here
while(x>y) correctly exits after multiplies when -2147483648 < 1073741824
but only works after add on T4.1 if optimize is set to fast.
x=2147483644, y=2147483643 z=5
x=2147483645, y=2147483644 z=4
x=2147483646, y=2147483645 z=3
x=2147483647, y=2147483646 z=2
x=-2147483648, y=2147483647 z=1<-should have exited here
x=-2147483647, y=-2147483648 z=0
I've put in PR#790 which I believe makes the conditional compilation adapt in a manner consistent with the other interface types (MIDI, Serial, keyboard etc.). Briefly tested, seems to work OK.If you are using existing interfaces (making your own device with
a different set of interfaces) the code in all other files should
automatically adapt to the new endpoints you specify here.