precedence-related bug & wrong case value in execute for device Obj

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