Skip to content
Snippets Groups Projects
Verified Commit e6de8e5f authored by genofire's avatar genofire
Browse files

ble: card10 svc - lcd display does not need locking anymore

parent 29a9b484
No related tags found
No related merge requests found
...@@ -183,7 +183,6 @@ By defining 11x rgb from left to right. You need also to set exchange a bigger M ...@@ -183,7 +183,6 @@ By defining 11x rgb from left to right. You need also to set exchange a bigger M
LCD brightness characteristic LCD brightness characteristic
--------------------------------- ---------------------------------
This charatieristic set the brightness of the lcd backlight 0-100 in ``uint16``. This charatieristic set the brightness of the lcd backlight 0-100 in ``uint16``.
It works only, if no application (pycardium app) blocks the screen.
- set to 100 % ``0x6400`` - set to 100 % ``0x6400``
- set to 20 % ``0x1400`` (default value) - set to 20 % ``0x1400`` (default value)
......
...@@ -736,14 +736,6 @@ static uint8_t writeCard10CB( ...@@ -736,14 +736,6 @@ static uint8_t writeCard10CB(
} }
return ATT_SUCCESS; return ATT_SUCCESS;
case CARD10_LCD_BRIGHTNESS_VAL_HDL: case CARD10_LCD_BRIGHTNESS_VAL_HDL:
intVar = epic_disp_open();
if (intVar < 0) {
APP_TRACE_INFO1(
"ble-card10: lock display to set brightness failed: %d",
intVar
);
return ATT_ERR_RANGE;
}
BYTES_TO_UINT16(ui16, pValue); BYTES_TO_UINT16(ui16, pValue);
intVar = epic_disp_backlight(ui16); intVar = epic_disp_backlight(ui16);
APP_TRACE_INFO2( APP_TRACE_INFO2(
...@@ -751,9 +743,6 @@ static uint8_t writeCard10CB( ...@@ -751,9 +743,6 @@ static uint8_t writeCard10CB(
ui16, ui16,
intVar intVar
); );
epic_disp_close();
if (intVar < 0)
return ATT_ERR_RANGE;
return ATT_SUCCESS; return ATT_SUCCESS;
default: default:
APP_TRACE_INFO1( APP_TRACE_INFO1(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment