graphics() fixes, improvement windows

This commit is contained in:
Sebastian Hildebrandt 2019-06-16 17:25:02 +02:00
parent e49dd68bc3
commit 4ec97a2b11
2 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,7 @@ const videoTypes = {
'13': 'UDI embedded',
'14': 'SDTVDONGLE',
'15': 'MIRACAST',
'0x80000000': 'INTERNAL'
'2147483648': 'INTERNAL'
};
function graphics(callback) {

View File

@ -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) {