precedence-related bug / wrong case value in device Obj / registration bug

the resource ID for "reset error code" is 12 not 10.
"!=" takes precedence over "&"