Closed kscheff closed 5 years ago
Using the constant MIN_CONN_INTERVAL in a program leads to undesired behavior
10 BTPOKE MIN_CONN_INTERVAL, 24 20 BTPOKE MAX_CONN_INTERVAL, 24 LIST 10 BTPOKE MIN_CONN_INTERVAL, 24 BTPOKE MAX_CONN_INTERVAL, 24 20 BTPOKE MAX_CONN_INTERVAL, 24 OK RUN Bad expression >> 10 BTPOKE MIN_CONN_INTERVAL, 24 BTPOKE MAX_CONN_INTERVAL, 24
MIN_CONN_INTERVAL is defined in keyword_tables.h as the last keyword in keywords_12[]. This might lead to this behavior, MAX_CONN_INTERVAL works fine.
MIN_CONN_INTERVAL
keyword_tables.h
keywords_12[]
MAX_CONN_INTERVAL
Workaround: use directly the constant 0x311 for MIN_CONN_INTERVAL e.g.
0x311
10 BTPOKE 0X311, 24 20 BTPOKE MAX_CONN_INTERVAL, 24 LIST 10 BTPOKE 0X311, 24 20 BTPOKE MAX_CONN_INTERVAL, 24 OK RUN OK
not used...
Using the constant MIN_CONN_INTERVAL in a program leads to undesired behavior
MIN_CONN_INTERVAL
is defined inkeyword_tables.h
as the last keyword inkeywords_12[]
. This might lead to this behavior,MAX_CONN_INTERVAL
works fine.Workaround: use directly the constant
0x311
forMIN_CONN_INTERVAL
e.g.