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

STM32的int8_t 是返回不了负数的 #2

Open
quan1229 opened this issue Sep 12, 2021 · 0 comments
Open

STM32的int8_t 是返回不了负数的 #2

quan1229 opened this issue Sep 12, 2021 · 0 comments

Comments

@quan1229
Copy link

int8_t ee_24clxx_init(struct i2c_dev_device *i2c_bus)
{
if (NULL == i2c_bus)
{
return -1;
}
ee_i2c_dev = i2c_bus;

return 0;

}

你可以打印试试:printf("%d \r\n",sizeof(-1));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant