1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-22 15:55:28 +03:00

Adds four switch indicator elements to the OSD

This commit is contained in:
Darren Lines 2022-01-08 21:36:00 +00:00
parent 02ea424b9b
commit 4c0e196a18
23 changed files with 881 additions and 768 deletions

View file

@ -3158,6 +3158,9 @@ var mspHelper = (function (gui) {
(new Uint32Array(buf))[0] = fi32;
value = (new Float32Array(buf))[0];
break;
case "string":
value = resp.data.readString();
break;
default:
throw "Unknown setting type " + setting.type;
}
@ -3201,6 +3204,11 @@ var mspHelper = (function (gui) {
var if32 = (new Uint32Array(buf))[0];
data.push32(if32);
break;
case "string":
for (var ii = 0; ii < value.length; ii++) {
data.push(value.charCodeAt(ii));
}
break;
default:
throw "Unknown setting type " + setting.type;
}