commit | c5fbacbeaf1463d51b094e76ffa3e33cb91b895d | [log] [tgz] |
---|---|---|
author | Ed James <edjames@google.com> | Thu Dec 03 23:14:45 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Dec 03 23:14:45 2015 +0000 |
tree | aa31ca7cd4d2b66b58ec6f508ad97375921c2687 | |
parent | b0e917a99e53e2dc7cf6a997767a2922f5e29609 [diff] | |
parent | 4b63fb68334d266d540840f634c8767c60707b1b [diff] |
Merge "gpio-mailbox: fix case where no reset button is present"
diff --git a/gpio-mailbox/gpio-mailbox.c b/gpio-mailbox/gpio-mailbox.c index 090bcb5..9956de7 100644 --- a/gpio-mailbox/gpio-mailbox.c +++ b/gpio-mailbox/gpio-mailbox.c
@@ -372,7 +372,9 @@ } int reset_button = 0; - (void) PinValue(handle, PIN_BUTTON_RESET, &reset_button); + if (has_reset_button) { + (void) PinValue(handle, PIN_BUTTON_RESET, &reset_button); + } if (now - last_print_time >= 6000) { if (has_fan) {