Error in manual3 page 40

nerdegutta

Senior Member
Hi.

Is there a typo in manual3 page 40, second line in the init procedure?

Code:
init: let pins = 0 ' Clear all output lines
      let b4 = 0 ' Reset variable b3
Shouldn't it be

Code:
let b3 = 0
?

Maybe I don't get it...?

- nerdegutta
 

nick12ab

Senior Member
I think it's actually meant to be b1 since it's the only variable used in that procedure. If Rev-Ed had used symbol definitions in that code, it would have been easier to guess which variable it is supposed to be.
 

g6ejd

Senior Member
Well b4 is not used, neither is b3 and later on in the routine there's a "Let b1 = 14" assignment before the subroutine call. I conclude it's a typo.
 

hippy

Ex-Staff (retired)
There is a mismatch between the command and the comment, and, as noted, neither b4 or b3 seem to be used, so it's probably safe to ignore it, set the comment to match the command, or remove it. We will investigate.
 

nerdegutta

Senior Member
There is a mismatch between the command and the comment, and, as noted, neither b4 or b3 seem to be used, so it's probably safe to ignore it, set the comment to match the command, or remove it. We will investigate.
Thanks, that's great.
 
Top