Fix invalid condition in tesla generator think
Merge remote-tracking branch 'upstream/master'