Tools:HAL_Linux_Essentials: store pin status during pulse instead of status after pulse