Fixed the inverting schmitt trigger.