Hello,
new compiler V5.05 does not handle an expression: lastrec[2] = (kol_strok / 4); //
and so works: lastrec[2] = kol_strok / 4; //
This code calculates the address of the data access. Then, the address is inserted in the data request command. After receiving the data I have seen the incorrect data - address formed properly.
I have carefully looked at the code and see the unnecessary brackets here are:
lastrec [2] = (resint / 4);
and such
lastrec [3] = (resint - (lastrec [2] * 4)) + 1;
I removed the brackets and it worked.
Perhaps you can provide a complete test example that shows the array content via a printf() for the two cases you've identified. Use the PRE tags when posting source code, see "Posting Tips"
Ideally post a link to a zipped project.
I'm not seeing any casting or precedence issues in the fragments you've provided thus far, but perhaps I'm missing some context here.
I continue to test the project. Recently, the situation with the failure of repeated data. Probably nothing to do with braces ... Let me get a stable result and be sure to let you know