Fixed generation of device config type string

Former-commit-id: ec245b9fae3f2bae690e985657807389770539d9
This commit is contained in:
johan 2013-10-27 13:15:48 +01:00
parent 8bf1e6bfa4
commit 73243eb593
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
"device" :
{
"name" : "MyPi",
"type" : "WS2801",
"type" : "ws2801",
"output" : "/dev/spidev0.0",
"rate" : 1000000,
"bgr-output" : false

View File

@ -1 +1 @@
001950ae6499ac83babe8e563be11b8daacd554c
948743846fb38a0f1f9a91ebb721884f3890f965

View File

@ -37,7 +37,7 @@ public class DeviceConfig {
strBuf.append("\t{\n");
strBuf.append("\t\t\"name\" : \"").append(mName).append("\",\n");
strBuf.append("\t\t\"type\" : \"").append(mType).append("\",\n");
strBuf.append("\t\t\"type\" : \"").append(mType.name()).append("\",\n");
strBuf.append("\t\t\"output\" : \"").append(mOutput).append("\",\n");
strBuf.append("\t\t\"rate\" : ").append(mBaudrate).append(",\n");
strBuf.append("\t\t\"bgr-output\" : ").append(mBgrOutput).append("\n");