tecs: fix wrong != 0 check
Merge pull request #534 from thomasgubler/tecs_fix_comparison

tecs: fix wrong != 0 check