Commit Graph

72 Commits

Author SHA1 Message Date
ccffedaca1 implement sprintf wrapping in APP if WRAP_PRINTF is defined.
you must have:
CFLAGS += -DWRAP_PRINTF=1
LFLAGS += -Wl,-wrap,vsnprintf
LFLAGS += -Wl,-wrap,snprintf
LFLAGS += -Wl,-wrap,sprintf
LFLAGS += -Wl,-wrap,vsprintf
in application.mk
2022-11-03 18:34:09 +00:00
2a71041e2d use nanoprintf in logging 2022-11-03 13:47:54 +00:00
66096497f1 logging fix for windows 2022-10-30 19:40:18 +01:00
9991ad7aca Fixed hang 2022-10-29 06:25:01 -05:00
4847ce617b Formatted 2022-10-29 06:11:38 -05:00
b6696938c4 logging - check for NULL fmt pointer 2022-10-28 18:38:25 +02:00
a060150d3e fix platform again 2022-10-27 20:57:11 +01:00
a6259a1922 Platform fix? 2022-10-27 20:44:03 +01:00
f80b4eca70 compile fix 2022-10-27 20:27:16 +01:00
85eddb7df0 Remove unused buffer, make platform specific 2022-10-27 20:12:31 +01:00
054d6a02d7 After analysing serial output on T, it would seem that we can send to serial without spinning in a thread.
The changes will fill the H/W tx fifo from our logging fifo, but not wait for the hardware to be available, so we spend less tiime stuck if logs get full.
2022-10-27 19:15:48 +01:00
07077ed41c move mutex to BEFORE we empty the logging temp buffer.
Add option for log_delay < 0 -> delay according to number of characters logged at 115200 baud.
2022-10-26 07:16:55 +01:00
40f509401b ir log 2022-10-20 09:43:02 +02:00
c94194e6d3 IR driver wrapper, also warning fixes 2022-10-19 13:54:25 +02:00
18e7b1e3b9 better logging for dgr 2022-10-12 07:37:26 +02:00
d945db81f4 Using static buffer 2022-10-09 21:02:04 -05:00
a7d986d047 Calls to bk_printf with logging strings need %s
bk_printf expects a formatting string, so if you pass it a log entry with a "%" in it, it will not show the "%" symbol and instead try to match a formatting pattern. This causes a difference in logging to serial vs logging to TCP / HTTP. Eg, this code results in different results on serial vs other logging:

```
ADDLOGF_INFO("At %d%%", 12);
```

Expected: Log shows "At 12%" - actual serial log is "At 12".
2022-10-08 22:05:48 +02:00
91f1c66782 Added size/logging constants 2022-10-04 19:07:46 -05:00
0c0d8c7bb6 LOGGING - replaced work buffer from stack to dynamic allocation due to freezing in OTA process. 2022-10-03 18:47:45 +02:00
a3d8542173 Safer logging 2022-10-02 22:39:49 +02:00
29dfec611c Added PLATFORM_W600 2022-09-29 18:45:42 -05:00
63a95a4316 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2022-09-10 08:16:43 +02:00
66980abf0c DDP stub 2022-09-10 08:16:34 +02:00
a738605a11 re-merging changes from last commit 2022-09-04 00:10:12 +02:00
5d27296474 Revert "Status information auto-updates, tweaked HTML" 2022-09-02 19:47:55 +02:00
cfe69edfdc Refactored start / end of HTML into functions 2022-09-01 23:26:21 +02:00
e326b930e6 tcp console 2022-07-17 12:50:24 +02:00
31f6be98bd fix warnings, cmd test 2022-07-16 22:35:50 +02:00
2e91d07f9a rename log feature to energy metering 2022-07-16 12:13:53 +02:00
6d666b4ecc w800 p3 2022-07-11 12:48:07 +02:00
6f4437af1f w800 port p2 2022-07-11 11:29:11 +02:00
bb8b18c03d better device grups support 2022-06-09 16:48:32 +02:00
c68c98d2c6 tasmota device grups p1 2022-06-09 04:30:17 +02:00
f156c5fecd fix EOL whitespace 2022-05-29 09:32:47 -04:00
fdbf665cfc fix line endings 2022-05-29 09:32:14 -04:00
e614a8ad1e multicast recv 2022-05-16 15:27:22 +02:00
e95d4695e0 introduce command flags system, mark command sources, warning fixes 2022-05-05 23:04:18 +02:00
e9521e4b44 unfinished events prototype 2022-04-22 09:58:23 +02:00
0ec2c400ef fix pins and log 2022-04-17 03:47:06 +02:00
9b88617fa0 corrrect names for threads 2022-04-16 02:09:58 +02:00
429d3f6218 bl602 testing 2022-04-15 22:58:11 +02:00
7ffa51c003 clear up reduntant headers 2022-04-15 20:49:49 +02:00
73f4fb879d reorganize p1 2022-04-15 11:52:36 +02:00
9c6d09845d BL0942 support with calibration 2022-04-12 13:48:21 +02:00
694e2d591a log option I2C 2022-03-13 12:35:14 +01:00
e82cae613a logs: bugfix for windows and DEBUG_USE_SIMPLE_LOGGER 2022-03-09 07:53:29 +00:00
b988c23092 finalize logging clear up 2022-03-07 16:00:19 +01:00
8797996bd3 tmcu log 2022-03-07 14:06:03 +01:00
c1c5757574 ports logs and javascript app to xr809, clear up logging from duplicate log functions 2022-03-07 14:01:15 +01:00
ba7aba3cb9 xr809 build logging.c 2022-03-07 09:55:00 +01:00