Fixed Android black screen issue.

This commit is contained in:
Ylian Saint-Hilaire
2021-03-12 03:23:29 -08:00
parent 0d0aa86083
commit 2eebd4a1d4
4 changed files with 349 additions and 20 deletions

File diff suppressed because one or more lines are too long

View File

@@ -172,6 +172,9 @@ var CreateAgentRedirect = function (meshserver, module, serverPublicNamePort, au
if (typeof e.data == 'string') {
obj.xxOnControlCommand(e.data);
} else {
// If only 1 byte
if ((cmdAccLen == 0) && (e.data.byteLength == 1)) return; // Ignore single byte data, this is a keep alive.
// Send the data to the module
if (obj.m.ProcessBinaryCommand) {
// Send as Binary Command