Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
2eb506c5
Commit
2eb506c5
authored
8 years ago
by
Deomid Ryabkov
Committed by
Cesanta Bot
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make console output in SLFS adapter overrideable
PUBLISHED_FROM=455184fbe730cf62340046c73ffd8ae4b0e0a2c1
parent
9f78a290
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
mongoose.c
mongoose.c
+9
-7
No files found.
mongoose.c
View file @
2eb506c5
...
...
@@ -9935,7 +9935,13 @@ void fs_slfs_set_new_file_size(const char *name, size_t size) {
#define SPIFFS_FD_BASE 10
#define SLFS_FD_BASE 100
#define CONSOLE_UART UARTA0_BASE
#ifndef MG_UART_CHAR_PUT
#if CS_PLATFORM == CS_P_CC3200
#define MG_UART_CHAR_PUT(fd, c) MAP_UARTCharPut(CONSOLE_UART, c);
#else
#define MG_UART_CHAR_PUT(fd, c)
#endif
/* CS_PLATFORM == CS_P_CC3200 */
#endif
/* !MG_UART_CHAR_PUT */
int
set_errno
(
int
e
)
{
errno
=
e
;
...
...
@@ -10167,15 +10173,11 @@ ssize_t _write(int fd, const void *buf, size_t count) {
r
=
set_errno
(
EACCES
);
break
;
}
#if CS_PLATFORM == CS_P_CC3200
for
(
i
=
0
;
i
<
count
;
i
++
)
{
const
char
c
=
((
const
char
*
)
buf
)[
i
];
if
(
c
==
'\n'
)
M
AP_UARTCharPut
(
CONSOLE_UART
,
'\r'
);
M
AP_UARTCharPut
(
CONSOLE_UART
,
c
);
if
(
c
==
'\n'
)
M
G_UART_CHAR_PUT
(
fd
,
'\r'
);
M
G_UART_CHAR_PUT
(
fd
,
c
);
}
#else
(
void
)
i
;
#endif
r
=
count
;
break
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment