Hi Rob, About Minix sample, this is due to bug (probably) in compiler. You already reported this, Kyle had to have a look. Here's my reply at that time, for the record:
""" About the sample, I had a look, it seems like a bug in the compiler. Guilty line: const byte myfile[MINIX_MAX_FILENANE_LEN] = "file2K\0 " This is a NULL terminated string. MINIX_MAX_FILENAME_LEN is const, its value is 30. Now replace "\0" by "\n", warning is gone. Sounds like the compiler doesn't like \0 escape sequence... """ Cheers, Seb On 9 December 2012 09:31, Rob Hamerling <[email protected]> wrote: > > Hi Matt and Seb, > > Matt: May I ask you to have a look at your servo_slave samples?? The PWM > libraries have been changed lately and now several of these samples produce > warnings like: > > x:\lib/pwm_ccp1.jal:125: warning: "pwm1_set_dutycycle() is deprecated, >> .. use pwm1_set_dutycycle_percent() or pwm1_set_dutycycle_ratio()" >> x:\lib/pwm_ccp2.jal:125: warning: "pwm2_set_dutycycle() is deprecated, >> .. use pwm2_set_dutycycle_percent() or pwm2_set_dutycycle_ratio()" >> > > It concerns the following samples: > > 16f877a_servo_rc_slave > 16f877_servo_rc_slave > 18f4525_servo_rc_slave > 18f452_servo_rc_slave > 18f4550_servo_rc_slave > 18f4620_servo_rc_slave > > This is because of changes in the dutycycle setting procedures. > > > And Seb: with the new compiler (2.4p) there is a sample of yours giving a > warning: > > 18f27j53_sd_card_minix_read.**jal:154: warning: fewer initializers than >> expected >> > > Maybe you can find a way to suppress this warning. > > Regards, Rob. > > > -- > R. Hamerling, Netherlands --- http://www.robh.nl > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to jallib+unsubscribe@** > googlegroups.com <jallib%[email protected]>. > For more options, visit this group at http://groups.google.com/** > group/jallib?hl=en <http://groups.google.com/group/jallib?hl=en>. > > -- Sébastien Lelong -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
