Commit Graph

1488 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
16e6ebbc5e more tests 2022-11-03 13:48:18 +00:00
2a71041e2d use nanoprintf in logging 2022-11-03 13:47:54 +00:00
158cbb4d0b implement nanoprintf as a test 2022-11-03 13:47:19 +00:00
19c68be486 !!!!!!! fix really bad #define !!!!!!! 2022-11-03 13:45:38 +00:00
61b3aceacc Add testFloats cmd 2022-11-03 09:19:58 +00:00
939eb28297 disable sprintf etc redefinition because apparently some of the required formats are missing (NOTE: BK7231T will again crash on testLog command) 1.14.120 2022-11-03 05:53:20 +01:00
78447db959 update submodules for bl602 mqtt stabilit fix 1.14.119 2022-11-02 19:57:45 +01:00
e84ec63ca0 w600/w800 fix 2022-11-02 19:35:13 +01:00
1d367b5c73 FIX BL602 - BL602 doesn't have pin number 26 and setting that pin would crash - now the default pin indices of LED drivers are per-platform 1.14.118 2022-11-02 19:20:22 +01:00
50710b7f8a rename "test_strdup" to "strdup" and use it as our main strdup, the strdup from compiler is buggy for some reasons, I just had it crash on BL602 as well. Also enable sprintf etc etc lightweight verrsions... 1.14.117 2022-11-02 18:51:21 +01:00
4b6b71b6e9 ADD EVENT MALLOC CHECk 1.14.116 2022-11-02 18:13:37 +01:00
79158f1398 BL602 - enable drivers in build 1.14.115 2022-11-02 16:06:49 +01:00
4f53d14e60 enable my script changes and enable deduper 1.14.114 2022-11-02 15:36:34 +01:00
eae3118613 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.14.113 2022-11-02 14:28:46 +01:00
0b53668490 add a win main for testing only scripts and pritnf on WINDOWS 2022-11-02 14:28:18 +01:00
12f03e3172 Merge pull request #394 from btsimonh/obkdevices
Obkdevices
1.14.112
2022-11-02 12:54:38 +01:00
0772c13b3a Merge pull request #393 from btsimonh/delayedstartup
Delayedstartup
2022-11-02 12:54:27 +01:00
8b844c7f78 add lightweight snprintf/vsnprintf replacement (NOT ENABLED !!!). It seem to fix most of the crashes, especially that strange one with %f addLogAdv 2022-11-02 12:36:54 +01:00
b8a5706131 move some logs to debug in event handler init to prevent log overrun (indicated by '^' in log). 2022-11-02 09:18:18 +00:00
d374db5310 Delay start by 750ms.
By experiment, tcp init happens after 500ms....  but I can;t find a way to wait for it to have finished, so 750 is 'safe'?
2022-11-02 09:17:43 +00:00
13f35ab1d7 expression fix 1.14.111 2022-11-02 10:11:43 +01:00
180f928107 SSDP don't ask for a port if no wifi
mod some logs
2022-11-02 09:10:51 +00:00
9dd5219b38 add example script from yesterday 1.14.110 2022-11-02 09:53:46 +01:00
af9adec142 keep a list of obk SSDP devices, and make available on /obkdevicelist as a JSON array. 2022-11-01 21:16:39 +00:00
dc70c9e59b add ability to change button hold repeate time only from script/command 1.14.109 2022-11-01 13:20:19 +01:00
01a1f31f1d add ability to clear all event handleres at runtime 2022-11-01 13:19:19 +01:00
6219628100 Update README.md 1.14.108 2022-11-01 11:31:57 +01:00
dc70b3c806 Merge pull request #382 from btsimonh/lfssize
Make LFS size adjustable.
1.14.107
2022-11-01 11:24:03 +01:00
240a559674 Merge pull request #384 from iprak/save-changes
Save settings
2022-11-01 11:22:03 +01:00
d2b17f3395 update submodules because of LWIP update on T 1.14.106 2022-11-01 10:48:09 +01:00
90296a28ce Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2022-11-01 10:47:20 +01:00
ce473bba7a reduce spam in cmd_if 2022-11-01 10:47:06 +01:00
230c0ccaec Merge pull request #381 from valeklubomir/main
MQTT, OTA changes
2022-11-01 10:46:09 +01:00
db20dcba8c Save settings 2022-11-01 04:36:41 -05:00
7c2881682c Merge branch 'openshwprojects:main' into main 2022-11-01 10:25:33 +01:00
012dc7574a DRV - MQTT_isReady bug fix. Removed warning. 2022-11-01 10:20:36 +01:00
51c24bbf26 platforms fix for LFS changes 2022-11-01 09:18:37 +00:00
543aed29b0 Merge pull request #375 from btsimonh/fixScheduletask
Fix scheduletask
1.14.105
2022-11-01 08:59:34 +01:00
172e452699 move DRV_SSDP_Active varibale to user_main to allow compile with DRV_SSDP.c excluded from build. 2022-11-01 07:51:12 +00:00
f74a49c08d Make LFS size adjustable. Breaking change as default is 0x8000 (16Kbytes).
New commands:
lfssize - log size
lfssize 0x10000 - configure size
lfsunmount
lfsmount
lfsformat - reformat at current size
lfsformat 0x18000 - configre size and format lfs.

lfs size is stored in devcie config.
The main benefit of this is if a small LFS is used, it does not get overwritten when doing OTA.
Also, if it DOES, you can still backup and restore, which will be faster with a smaller area.
You still have the option for up to 0x80000 - 512 kbytes.
2022-11-01 07:42:53 +00:00
8c0b7d09fc Platform fix III 2022-11-01 01:29:38 +01:00
3c894c305f BK7231 specific functionality 2022-11-01 01:16:59 +01:00
8218b6428f Removed incompatible include 2022-11-01 00:55:44 +01:00
491deb58be Platform fix II 2022-11-01 00:29:50 +01:00
52544b5247 Platform fix. Warning removed. 2022-11-01 00:14:27 +01:00
6934ba7b11 OTA - monitoring update 2022-10-31 23:52:32 +01:00
121625c31c OTA - minor optimization
MQTT - handling OTA process. if OTA started MQTT is disconnected and stays idle.
     - Optimizing connection state machine, faster MQTT connect after Wifi connected.
DRV - handling OTA progress, Checking MQTT before publishing messages
NTP - handling OTA progress.
2022-10-31 23:33:02 +01:00
07ab6f6bd0 Merge pull request #378 from btsimonh/specificalign
be explicit about alignment in config....
1.14.104
2022-10-31 18:51:12 +01:00
f14c22ae24 reduce log ouput because it lags a lot (for scripting) 1.14.103 2022-10-31 14:05:16 +01:00