草庐IT

read_more

全部标签

HAL库函数中的HAL_I2C_Mem_Write /HAL_I2C_Mem_Read中的DevAddress解析

在HAL库函数中的HAL_I2C_Mem_Write/HAL_I2C_Mem_Read两个函数的作用就是玩IIC设备中写入/读取多个直接的数据,函数原型:HAL_StatusTypeDefHAL_I2C_Mem_Read(I2C_HandleTypeDef*hi2c,uint16_tDevAddress,uint16_tMemAddress,uint16_tMemAddSize,uint8_t*pData,uint16_tSize,uint32_tTimeout);HAL_StatusTypeDefHAL_I2C_Mem_Write(I2C_HandleTypeDef*hi2c,uint16_

Uncaught TypeError: Cannot read properties of null (reading ‘name‘) 和NoSuchMethodException

问题1:UncaughtTypeError:Cannotreadpropertiesofnull(reading'name')分析:这是由于还没登录,data.name还没获取到值,所以为null方法1:可以不管,它不会影响其他功能,当你登录后,便不会报这个错方法2:给它一个if判断是否为null修改前://查找单个对象数据$.get("user/findOne",{},function(data){//data:{uid:1,name:'李四'}varmsg="欢迎回来,"+data.name;$("#span_username").html(msg);});修改后://查找单个对象数据$.

解决com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store问题

背景最近跑一个app,AndroidStudio版本有点低,就升级重装了下,结果报错com.android.ide.common.signing.KeytoolException:FailedtoreadkeyAndroidDebugKeyfromstore“C:\Users\Admin\.android\debug.keystore”:Invalidkeystoreformat解决办法找到C:\Users\Admin\.android\debug.keystore文件先复制备份一下,删除debug.keystore之后重启AndroidStudio就行了,C:\Users\Admin\.an

【异常】has been compiled by a more recent version of the Java Runtime (class file version 55.0)

一、问题描述使用全局的JDK环境来运行项目,提示如下:Exceptioninthread"main"java.lang.UnsupportedClassVersionError:com/logic/ids/IdsApplicationhasbeencompiledbyamorerecentversionoftheJavaRuntime(classfileversion55.0),thisversionoftheJavaRuntimeonlyrecognizesclassfileversionsupto52.0二、问题解析才想起来,这个项目的JDK版本是11,因为类是在比试图运行它的版本更高的J

[已解决]Cannot read properties of undefined (reading ‘install‘)

唉,对于计算机的bug是真的很害怕。但是这个错误,我发现解决起来还是蛮简单的。参考这篇博客:(2条消息)错误“Cannotreadpropertiesofundefined(reading‘install‘)atVue.use”的解决方案_cannotreadpropertiesofundefined(reading'inst_FunSober的博客-CSDN博客原因分析原因主要就是我们在下载vue-router的时候下载的是最新版的(以4开头),但是这个版本它是给vue3准备的,所以我们要卸载router,然后限制他的版本。解决方法:在终端运行:npmuninstallvue-routern

执行adb指令报错:error: more than one device/emulator解决办法

执行adb指令报错:error:morethanonedevice/emulator解决办法进行安卓设备的测试过程中,执行adb指令可能会遇到一些小错误,若是报错:error:morethanonedevice/emulator,是因为我们有多个设备连接了电脑,解决办法很简单,只需要我们指定执行设备就可以了,连接安卓设备后进入终端输入:adb-s设备序列号shellps21190设备序列号要是不清楚,可以输入:adbdevices进行获取,devices前面的就是设备序列号,例如xxxxxxdevices;在进行adb调试过程中,若是有其他问题,我们也可以尝试重启adb服务:adbkill-s

git报错fatal: unable to access ‘https://github.com/‘: OpenSSL SSL_read: Connection was reset

bug描述fatal:unabletoaccess‘https://github.com/…’:OpenSSLSSL_read:Connectionwasreset,errno10054bug产生原因产生原因:一般是这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错bug解决方法参考网上解决办法:解除ssl验证后,再次git即可在终端窗口输入:gitconfig--globalhttp.sslVerifyfalse

c# 错误 :Unrecognized configuration section userSettings - stop program reading user. 配置?

在我的c#表单应用程序(在VS2010中创建,使用.NET4.0)中,我使用应用程序设置来存储输出路径。以前此设置是用用户范围配置的,但我不得不将其范围更改为应用程序。执行此操作后,我现在在启动表单时收到UnrecognizedconfigurationsectionuserSettings错误(注意该程序之前已执行,设置范围设置为用户):InnerException:System.Configuration.ConfigurationErrorsExceptionMessage=UnrecognizedconfigurationsectionuserSettings.(C:\Docu

c# 错误 :Unrecognized configuration section userSettings - stop program reading user. 配置?

在我的c#表单应用程序(在VS2010中创建,使用.NET4.0)中,我使用应用程序设置来存储输出路径。以前此设置是用用户范围配置的,但我不得不将其范围更改为应用程序。执行此操作后,我现在在启动表单时收到UnrecognizedconfigurationsectionuserSettings错误(注意该程序之前已执行,设置范围设置为用户):InnerException:System.Configuration.ConfigurationErrorsExceptionMessage=UnrecognizedconfigurationsectionuserSettings.(C:\Docu

解决Vue报错Error in callback for immediate watcher “height“: “TypeError: Cannot read properties of

1.背景最近在项目中遇到了一个问题,控制台报错Errorincallbackforimmediatewatcher"height":"TypeError:Cannotreadpropertiesofundefined(reading'style')",找了好久,不知道哪里的错误,最后终于解决了,于是记录一下。控制台报错,如下所示这个错误报得莫名其妙,既没告诉你具体位置,也没告诉你是哪里出错,页面和数据都能正常显示,于是我找啊找啊,终于知道是哪里的问题了。2.业务场景代码中是要给table设置一个高度,而我在data中把height赋值为空了,具体请看下面代码  这里就涉及到vue中的生命周期函