mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix generation of color smoothing parameters
Former-commit-id: 44b606e833451ee5795d92fd0bef3acb2dd8d47c
This commit is contained in:
parent
402cb02f09
commit
90f1f282e2
@ -60,12 +60,12 @@
|
||||
"blacklevel" : 0.0000,
|
||||
"whitelevel" : 1.0000
|
||||
},
|
||||
// "smoothing" :
|
||||
// {
|
||||
// "type" : "linear",
|
||||
// "time_ms" : 200,
|
||||
// "updateFrequency" : 20.0000
|
||||
// }
|
||||
"smoothing" :
|
||||
{
|
||||
"type" : "none",
|
||||
"time_ms" : 200,
|
||||
"updateFrequency" : 20.0000
|
||||
}
|
||||
},
|
||||
|
||||
/// The configuration for each individual led. This contains the specification of the area
|
||||
|
@ -1 +1 @@
|
||||
7079c4843fecd32e0914e10a06cf4fe99d89ab9d
|
||||
1c3031eb536b2af5ced172f1eb071011f705cc86
|
@ -137,10 +137,10 @@ public class ColorConfig {
|
||||
private String smoothingToString() {
|
||||
StringBuffer strBuf = new StringBuffer();
|
||||
|
||||
String preamble = (mSmoothingEnabled)? "\t\t" : "//\t\t";
|
||||
String preamble = "\t\t";
|
||||
strBuf.append(preamble).append("\"smoothing\" :\n");
|
||||
strBuf.append(preamble).append("{\n");
|
||||
strBuf.append(preamble).append(String.format(Locale.ROOT, "\t\"type\" : \"%s\",\n", mSmoothingType.name()));
|
||||
strBuf.append(preamble).append(String.format(Locale.ROOT, "\t\"type\" : \"%s\",\n", (mSmoothingEnabled) ? mSmoothingType.name() : "none"));
|
||||
strBuf.append(preamble).append(String.format(Locale.ROOT, "\t\"time_ms\" : %d,\n", mSmoothingTime_ms));
|
||||
strBuf.append(preamble).append(String.format(Locale.ROOT, "\t\"updateFrequency\" : %.4f\n", mSmoothingUpdateFrequency_Hz));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user