graphics() fixes, improvement windows
This commit is contained in:
parent
e49dd68bc3
commit
4ec97a2b11
@ -51,7 +51,7 @@ const videoTypes = {
|
||||
'13': 'UDI embedded',
|
||||
'14': 'SDTVDONGLE',
|
||||
'15': 'MIRACAST',
|
||||
'0x80000000': 'INTERNAL'
|
||||
'2147483648': 'INTERNAL'
|
||||
};
|
||||
|
||||
function graphics(callback) {
|
||||
|
||||
@ -28,7 +28,8 @@ function wifiDBFromQuality(quality) {
|
||||
}
|
||||
|
||||
function wifiQualityFromDB(db) {
|
||||
return 2 * (parseFloat(db) + 100);
|
||||
const result = 2 * (parseFloat(db) + 100);
|
||||
return result <= 100 ? result : 100;
|
||||
}
|
||||
|
||||
function wifiFrequencyFromChannel(channel) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user