Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GCC warnings #84

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix GCC type warning
  • Loading branch information
lupyuen committed Dec 27, 2020
commit bf91d5a24fe748f3d10ad241106b2c66dc232878
2 changes: 1 addition & 1 deletion components/hal_drv/bl602_hal/bl_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void i2c_set_freq(int freq, int i2cx)

void i2c_gpio_init(int i2cx)
{
uint8_t gpiopins[2];
GLB_GPIO_Type gpiopins[2];
if (i2cx == I2C0) {
gpiopins[0] = GLB_GPIO_PIN_4;
gpiopins[1] = GLB_GPIO_PIN_3;
Expand Down