This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
mhsw-espurna
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Increase buffer size to fit B0 code
refactor-terminal
Max Prokhorov
6 years ago
committed by
GitHub
parent
d2e0b12189
commit
e47bdad2ac
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
code/espurna/rfbridge.ino
+ 1
- 1
code/espurna/rfbridge.ino
View File
@ -102,7 +102,7 @@ static bool _rfbToChar(byte * in, char * out, int n = RF_MESSAGE_SIZE) {
#
if WEB_SUPPORT
#
if WEB_SUPPORT
void
_rfbWebSocketSendCode
(
unsigned
char
id
,
bool
status
,
const
char
*
code
)
{
void
_rfbWebSocketSendCode
(
unsigned
char
id
,
bool
status
,
const
char
*
code
)
{
char
wsb
[
1
00
]
;
char
wsb
[
1
92
]
;
snprintf_P
(
wsb
,
sizeof
(
wsb
)
,
PSTR
(
"
{
\"
rfb
\"
:[{
\"
id
\"
: %d,
\"
status
\"
: %d,
\"
data
\"
:
\"
%s
\"
}]}
"
)
,
id
,
status
?
1
:
0
,
code
)
;
snprintf_P
(
wsb
,
sizeof
(
wsb
)
,
PSTR
(
"
{
\"
rfb
\"
:[{
\"
id
\"
: %d,
\"
status
\"
: %d,
\"
data
\"
:
\"
%s
\"
}]}
"
)
,
id
,
status
?
1
:
0
,
code
)
;
wsSend
(
wsb
)
;
wsSend
(
wsb
)
;
}
}
Write
Preview
Loading…
Cancel
Save