Commit Graph

3392 Commits

Author SHA1 Message Date
Tester23
5b19eced18 Merge branch 'main' into testbuild 2024-05-12 10:56:46 +02:00
Tester23
0dc9d5c16b door sensor clear self test 2024-05-12 10:56:24 +02:00
Tester23
dc0f6780a7 fixes 2024-05-12 10:55:58 +02:00
Tester23
4146ccaaf1 Merge branch 'main' into testbuild 2024-05-12 10:32:02 +02:00
Tester23
67d01ec473 move more test commands to... cmd_test.c 2024-05-12 10:31:54 +02:00
MaxineMuster
83d37b3b2e Implement LittleFS for LN882H - only first basic testing from WebApp … (#1191)
* Implement LittleFS for LN882H - only first basic testing from WebApp !!!!

- need to add littlefs-source to sdk/OpenLN882H/project/OpenBeken/CMakeLists.txt

Remarks:
I had to move the import part of LittleFS

in various cmd-source files to nearer to the top of the files

otherwise I had very strange (false!!!) compiler errors regarding
"conflicting types" for equal(!) typed prototypes and functions or even variables in .h and .c files

e.g.:

/OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_main.c:47:6: error: conflicting types for 'g_powersave'
   47 | bool g_powersave;
      |      ^~~~~~~~~~~
In file included from /OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_local.h:4,
                 from /OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_main.c:6:
/OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_public.h:33:13: note: previous declaration of 'g_powersave' was here
   33 | extern bool g_powersave;
      |             ^~~~~~~~~~~
/OpenBK7231T_App/sdk/OpenLN882H/project/OpenBeken/app/src/cmnds/cmd_main.c:47:6: error: conflicting types for 'g_powersave'
   47 | bool g_powersave;
      |      ^~~~~~~~~~~

Also I had to disable other drivers, or the OTA image would not be flashed (after rebbot old version was still present)
Is there a size limit to respect for OTA? the size was well below the shown OTA-size of 0xAA000 (696320k if I calculated correct)

* Moved "bool" from local int definition to stdbool.h
So I got rid of all those "conflicting types" errors.

Thanks to @giedriuslt for pointing this out!

This commit also includes a define of "ENABLE_TEST_COMMANDS" for the littlefs tests (lfs_test<n>).

* Restored all #defines to 1
Last image loaded without any problem

* Update cmd_main.c - temporarily removed one define to be able to sync to master

Changed 
#if (defined WINDOWS) || (defined PLATFORM_BEKEN) || (defined PLATFORM_BL602) || (defined PLATFORM_LN882H)
back to
#if (defined WINDOWS) || (defined PLATFORM_BEKEN) || (defined PLATFORM_BL602)

in src/cmnds/cmd_main.c

* Update cmd_main.c

Restored change in cmd_main.c after syncing

* Update user_main.c

Changed user_main.c to allow SVM_RunThreads() for LN882H with LittleFS

* Merged updated OpenLN882H

* Disable building test commands in obk_config.h

* Also "#define ENABLE_EXPAND_CONSTANT 1" to allow more advanced scripting

* Added LN882H to some more "#if defined" lines to allow scripting ...
Added BL602 in two lines missing this platform, too

---------

Co-authored-by: openshwprojects <85486843+openshwprojects@users.noreply.github.com>
2024-05-12 09:17:38 +02:00
Tester23
a03a6eedf1 Merge branch 'main' into testbuild 2024-05-11 15:42:06 +02:00
Tester23
5dd30c66ad pins page is now down to 8kb (was 90kb, then 10kb) 2024-05-11 15:25:18 +02:00
Tester23
8cad88ab5e filter 2024-05-11 14:29:33 +02:00
Tester23
b3db6df997 optimized pins page? - part 1 2024-05-11 13:46:01 +02:00
Tester23
ebc94676cc some more docs work 2024-05-11 12:15:49 +02:00
Tester23
cc38adf462 docs 2024-05-11 11:46:04 +02:00
Tester23
b8ec9de0b2 docs 2024-05-11 11:45:26 +02:00
Tester23
9e71da2ee5 a bit better docs 2024-05-11 11:26:33 +02:00
Tester23
0a1520b604 add door sensor self test 2024-05-11 11:17:16 +02:00
Tester23
29cba034da Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2024-05-11 11:16:05 +02:00
Tester23
129f0c5ad9 extend doorsensor DSTime command 2024-05-11 11:15:58 +02:00
giedriuslt
9e32046068 Fix unknown method handling, lock on logging (#1224) 2024-05-11 09:09:23 +02:00
Tester23
ce4714d530 docs 2024-05-10 21:06:28 +02:00
Tester23
e0bc56f3ce docs 2024-05-10 20:45:48 +02:00
Tester23
c525a0002e add test for HASS discovery with unusually long name 2024-05-09 20:53:54 +02:00
Tester23
32de473ed4 fix HASS discovery with unusually long name 2024-05-09 20:53:44 +02:00
Tester23
01d69f7e15 Merge branch 'main' into testbuild 2024-05-09 08:20:55 +02:00
openshwprojects
41f7e4c73e Publish file (#1221)
* fix broken DSTime change at runtime

* publishfile

* ENABLE_LITTLEFS
2024-05-09 08:20:24 +02:00
Tester23
c03dd82ca6 Merge branch 'main' into testbuild 2024-05-08 01:39:35 +02:00
Tester23
dffe39c405 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 2024-05-08 01:35:19 +02:00
Tester23
09359e2bd6 cosmetic rename 2024-05-08 00:50:11 +02:00
openshwprojects
a114bde3da Update drv_tm_gn_display_shared.c 2024-05-07 22:59:32 +02:00
openshwprojects
d7a6381810 Update drv_tm_gn_display_shared.c 2024-05-07 22:42:15 +02:00
openshwprojects
eee9311615 Update drv_tm_gn_display_shared.c 2024-05-07 22:26:27 +02:00
Tester23
54eda9312e Merge branch 'main' into testbuild 2024-05-07 16:57:02 +02:00
Tester23
35beeaaf06 includfe HD2015 in prj 2024-05-07 16:55:17 +02:00
Tester23
6d58d85bc7 second fix for channel type priority 2024-05-07 16:55:08 +02:00
openshwprojects
9be6418025 add support for 7 segment driver HD2015E (#1214)
qqq
2024-05-07 15:20:54 +02:00
openshwprojects
072cf561fa try BL602 with ENABLE_EXPAND_CONSTANT 1 (#1212) 2024-05-07 15:00:24 +02:00
Tester23
2fcc44e4a5 hass discovery test for illuminance 2024-05-07 14:49:40 +02:00
openshwprojects
debd50f6cb test build 2024-05-07 13:57:22 +02:00
Tester23
47c4f4e3b3 self test for motion 2024-05-07 12:59:36 +02:00
Tester23
44b0d7c5ef add Motion channeltype 2024-05-07 12:39:05 +02:00
Tester23
52383326ca add pixe;lanim to prtoject 2024-05-07 12:38:48 +02:00
Tester23
f5ab8bfeaf fix buffer for pixelanim 2024-05-06 10:15:44 +02:00
openshwprojects
19345af307 fix typo pointed by Wolfieee 2024-05-06 08:34:51 +02:00
Tester23
726cf19146 respect OBK_DISABLE_ALL_DRIVERS 2024-05-05 11:09:12 +02:00
giedriuslt
6138d65197 Enable calendar events for bl602 (#1208) 2024-05-05 11:06:43 +02:00
giedriuslt
7a0f73193b Remove strftime to save space (#1210)
strftime takes a lot of space and we only use simple number printing for it. Should save 8kb
2024-05-05 10:50:26 +02:00
Tester
e4f84cb3fd spoeed cmd 2024-05-04 16:43:52 +02:00
Tester
70fc43bd44 add command to change LED anim 2024-05-04 15:05:40 +02:00
Tester
c960c1cdf5 make LED basecolors public 2024-05-04 14:54:13 +02:00
Tester
b483a80806 add shooting star 2024-05-04 14:04:00 +02:00
Tester
fb9b7a608d pixelanim speed p1, reorganize 2024-05-04 12:48:58 +02:00