Slightly adjust non-advanced category weights (#1091)

This commit is contained in:
Guillaume Jenkins
2018-08-14 13:26:22 -04:00
committed by GitHub
parent 4c28160a34
commit da15752720
7 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
/**
* Control of the LED screen.
*/
//% color=#5C2D91 weight=97 icon="\uf205"
//% color=#5C2D91 weight=101 icon="\uf205"
namespace led {
// what's the current high value
@ -31,9 +31,9 @@
barGraphHighLast = now;
}
// normalize lack of data to 0..1
// normalize lack of data to 0..1
if (barGraphHigh < 16 * Number.EPSILON)
barGraphHigh = 1;
barGraphHigh = 1;
// normalize value to 0..1
const v = value / barGraphHigh;