Select to expand quote
rp6conrad said..BigBoss said:
Hi Jan,
I noticed that the logo choice number does not responded correct to the logo's. Logo choice 12 should give Gaastra and Fanatic, but it displayed Fanatic and duotone.
Other issue, i want to change the timezone, but when i submitted the browser say that the 'barlenght' must be more than 1000 ( i had 500). Oke i changed it to 1000 then GPIO12_screen should be less than 1000.
The fieldchecks looks a little off ;-)
I did just checked the logos, on my browser (chrome / win10) everythings looks fine. Just the saillogo's 3 and 4 (both NP) were in reverse order. Logo 12 should display Fanatic and Duotone (board logo 1, sail logo 2).
The barlength is now limited between 1000 and 1852 meter, but I can enlarge this window from 250 - 10000 (can be handy in the Defi wind...). Timezone did work for me as it should. Only the change of the logOAO field was rather difficult, probably due to missing credits....



(sorry for the joke, i could not resist...).
Here the corrected logo list :
Hi Jan, I've flashed my units with 5.60, and but had issues with Logo_choice field in the config.txt. I've never played with this field, but decided to now. So I had to look at your code to find out what was going on. According to your code, it's parsing the config.Logo_choice field as:
"Logo_choice":,(sail logo)(board logo)
and not
"Logo_choice":,(board logo)(sail logo)
The modo operator you are using is processing the right most digit. Then you do a divide by 10, and the value in Logo_choice gets 10 base shifted to the right. Then repeat. So the digits in the Logo_choice field in the config.txt get read from right to left.
Also, what is the idea of the "if(Logo_choice > 99)" condition ?. Is this a once off test ?. If so, why is it in the for loop ?
SD_card.cpp (version 5.60):
--$-------------
.
.
210 for (int i=0;i 99){
223 logo_choice[0]=Logo_choice;
224 } else { // else default logos
225 logo_choice[i]=Logo_choice%10;//
226 Logo_choice=Logo_choice/10;
227 if(Logo_choice>0){
228 config.logo_count=i+1;
229 }
230 }
.
.
--$-------------