Need help writing to DAC

Well it won't compile, no closing brace.
You are using logical OR || when you should be using bit wise OR |