diff --git a/frontend/platform/platform_gx.c b/frontend/platform/platform_gx.c index e10b380820..f413793620 100644 --- a/frontend/platform/platform_gx.c +++ b/frontend/platform/platform_gx.c @@ -597,7 +597,7 @@ static void system_exitspawn(void) static void system_deinit(void) { #if defined(HAVE_LOGGER) || defined(HAVE_FILE_LOGGER) - inl_logger_deinit() + inl_logger_deinit(); #endif } diff --git a/gx/gx_input.c b/gx/gx_input.c index 2e74c54daa..5808a17632 100644 --- a/gx/gx_input.c +++ b/gx/gx_input.c @@ -280,11 +280,12 @@ static void gx_input_poll(void *data) for (unsigned port = 0; port < MAX_PADS; port++) { - uint32_t type = 0; uint32_t down = 0; uint64_t *state_cur = &pad_state[port]; #ifdef HW_RVL + uint32_t type = 0; + if (WPAD_Probe(port, &type) == WPAD_ERR_NONE) { WPADData *wpaddata = WPAD_Data(port);