Keil 5报错error C216: subscript on non-array or too many dimensions

今天在用keil5 读取AT24C02存储的数据时候,遇到了这个问题

main.c(156): error C216: subscript on non-array or too many dimensions

Keil 5报错error C216: subscript on non-array or too many dimensions_第1张图片

 当时出错的代码段在这

Keil 5报错error C216: subscript on non-array or too many dimensions_第2张图片

前面是数组,后面是函数

转到函数定义查看

Keil 5报错error C216: subscript on non-array or too many dimensions_第3张图片

 AT24C02_ReadByte()  函数用括号,不用[]  

改正之后就0错误0警告了

Keil 5报错error C216: subscript on non-array or too many dimensions_第4张图片

 

 

Keil 5报错error C216: subscript on non-array or too many dimensions_第5张图片Keil 5报错error C216: subscript on non-array or too many dimensions_第6张图片

 哎,还要细心哎呀

感谢学长们的帮助

 

 

 

你可能感兴趣的:(51单片机,java,jvm,开发语言)