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

【F429】环境信息更新时存在单位符号残留 #9

Open
Gorgeous2017 opened this issue Nov 3, 2019 · 1 comment
Open

【F429】环境信息更新时存在单位符号残留 #9

Gorgeous2017 opened this issue Nov 3, 2019 · 1 comment

Comments

@Gorgeous2017
Copy link
Owner

当数字的位数出现变化时,有时会出末尾的单位残留。
eg:

  • 30% -> 9%: 屏幕出现 9%%
  • 36db -> 255db -> 36db: 屏幕出现 36dbb

原因:
主要是因为原有的显存没有被清除掉,或者说没有被更新为背景的颜色。
而第二种情况理论上来说是不会出现的,因为噪音传感器达不到三位数。出现的原因可能是将末尾标志位误解析为噪音的数值。

@Gorgeous2017
Copy link
Owner Author

一开始想过在符号后面加上一个空格,以此来刷新掉原先后面残留的单位字符。

但是这样会出现一个问题:第三行的255db已经覆盖掉了原先的控制窗口的一部分,这就导致了即使刷新掉了单位字符,但是原先被覆盖的控制窗口无法再显示回来。

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