This code should not compile. I found this error today, it may relate to the & error recently reported but I found this when working on a port for Perry.
My real code is shown in the code below but the example code (second listing) is an example of the issue.
while (!(nrf24l01_irq_pin_active & nrf24l01_irq_rx_dr_active ))
In the example there is no function called f_two. This should fail to compile, but, the compiler generates asm/hex without an error.
#chip 16F1847, 32
#config Osc = intOSC, MCLRE_ON, PLLEN_ON
while ( !(f_one & f_two ) )
f_one = true
f_two = true
I don't see why it should fail to compile. As far as GCB is concerned f_one and f_two are just undeclared byte variables. The While statement and the functions all appear otherwise valid.
Old, old issue. I will delete this posting, if this is ok.
Log in to post a comment.