X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fplatforms%2Folimexp169%2FUserButtonP.nc;h=eee88845681962def48a5a1dd2c6c08d9cc4e656;hp=6b36d2db04c3195c2e60c987b20ccfdbb441b92f;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/platforms/olimexp169/UserButtonP.nc b/tos/platforms/olimexp169/UserButtonP.nc index 6b36d2db..eee88845 100644 --- a/tos/platforms/olimexp169/UserButtonP.nc +++ b/tos/platforms/olimexp169/UserButtonP.nc @@ -26,11 +26,11 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + /** * @author R. Steve McKown */ - + #include module UserButtonP { @@ -41,8 +41,8 @@ module UserButtonP { uses interface Notify as NotifyLower; } implementation { - - command button_state_t Get.get() { + + command button_state_t Get.get() { /* Olimex P169 user button pin is high when released - active low */ if ( call GetLower.get() ) { return BUTTON_RELEASED; @@ -67,6 +67,6 @@ implementation { signal Notify.notify( BUTTON_PRESSED ); } } - + default event void Notify.notify( button_state_t val ) { } }