Launcher: Fixed warning in updater
This commit is contained in:
parent
de5e8ae45a
commit
e8c2a51efc
@ -138,10 +138,10 @@ bool rg_input_read_gamepad_raw(uint32_t *out)
|
||||
|
||||
#if defined(RG_GAMEPAD_I2C_MAP)
|
||||
uint32_t buttons = 0;
|
||||
uint8_t data[5];
|
||||
#if defined(RG_TARGET_QTPY_GAMER) || defined(RG_TARGET_BYTEBOI_REV1)
|
||||
buttons = ~(rg_i2c_gpio_read_port(0) | rg_i2c_gpio_read_port(1) << 8);
|
||||
#else
|
||||
uint8_t data[5];
|
||||
if (rg_i2c_read(0x20, -1, &data, 5))
|
||||
buttons = ~((data[2] << 8) | data[1]);
|
||||
#endif
|
||||
|
||||
@ -134,7 +134,7 @@ static rg_gui_event_t view_release_cb(rg_gui_option_t *option, rg_gui_event_t ev
|
||||
rg_gui_option_t options[release->assets_count + 4];
|
||||
rg_gui_option_t *opt = options;
|
||||
|
||||
*opt++ = (rg_gui_option_t){0, _("Date"), release->date, RG_DIALOG_FLAG_MESSAGE, NULL};
|
||||
*opt++ = (rg_gui_option_t){0, _("Date"), (char *)release->date, RG_DIALOG_FLAG_MESSAGE, NULL};
|
||||
*opt++ = (rg_gui_option_t){0, _("Files:"), NULL, RG_DIALOG_FLAG_MESSAGE, NULL};
|
||||
|
||||
for (int i = 0; i < release->assets_count; i++)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user