Skip to content

Commit

Permalink
fix CF error, add some stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Nov 13, 2023
1 parent f251f72 commit 223c85b
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions BK7231Flasher/TuyaConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,15 +407,15 @@ public string getKeysHumanReadable(OBKConfig tg = null)
desc += "- BL0937 ELE on P" + value + Environment.NewLine;
if (tg != null)
{
tg.setPinRole(value, PinRole.BL0937CF1);
tg.setPinRole(value, PinRole.BL0937CF);
}
}
else if (key == "vi_pin")
{
desc += "- BL0937 VI on P" + value + Environment.NewLine;
if (tg != null)
{
tg.setPinRole(value, PinRole.BL0937CF);
tg.setPinRole(value, PinRole.BL0937CF1);
}
}
else if (key == "sel_pin_pin")
Expand Down Expand Up @@ -487,6 +487,30 @@ public string getKeysHumanReadable(OBKConfig tg = null)
{
desc += "- Microphone (TODO) is on P" + value + "" + Environment.NewLine;
}
else if (key == "pwmhz")
{
desc += "- TODO" + key + "" + Environment.NewLine;
}
else if (key == "pirsense_pin")
{
desc += "- TODO" + key + "" + Environment.NewLine;
}
else if (key == "pirlduty")
{
desc += "- TODO" + key + "" + Environment.NewLine;
}
else if (key == "pirfreq")
{
desc += "- TODO" + key + "" + Environment.NewLine;
}
else if (key == "pirmduty")
{
desc += "- TODO" + key + "" + Environment.NewLine;
}
else if (key == "pirin_pin")
{
desc += "- TODO" + key + "" + Environment.NewLine;
}
else if (key == "total_bt_pin")
{
desc += "- Pair/Toggle All Button on P" + value + Environment.NewLine;
Expand Down Expand Up @@ -519,6 +543,7 @@ public string getKeysHumanReadable(OBKConfig tg = null)
string cjwcur = getKeyValue("cjwcur");
string _2235ccur = getKeyValue("2235ccur");
string _2335ccur = getKeyValue("2335ccur");
string kp58wcur = getKeyValue("kp58wcur");
// use current (color/cw) setting
if (ehccur.Length>0 || wampere.Length > 0 || iicccur.Length > 0)
{
Expand All @@ -541,6 +566,10 @@ public string getKeysHumanReadable(OBKConfig tg = null)
// fallback
ledType = "SM2235";
}
else if (kp58wcur.Length > 0)
{
ledType = "KP18058";
}
else
{

Expand Down

0 comments on commit 223c85b

Please sign in to comment.