Skip to content
Snippets Groups Projects
Commit 3a0b7452 authored by schneider's avatar schneider
Browse files

fix(ble): Increase BLE task priority

Also decrease the time needed to update the LEDs
parent 58acc803
No related branches found
No related tags found
No related merge requests found
...@@ -776,25 +776,20 @@ static uint8_t writeCard10CB( ...@@ -776,25 +776,20 @@ static uint8_t writeCard10CB(
} }
// leds above // leds above
case CARD10_LEDS_ABOVE_VAL_HDL: case CARD10_LEDS_ABOVE_VAL_HDL:
APP_TRACE_INFO0("ble-card10: update LEDs above");
for (ui16 = 0; ui16 < 11; ui16++) { for (ui16 = 0; ui16 < 11; ui16++) {
epic_leds_set( epic_leds_prep(
ui16,
pValue[ui16 * 3],
pValue[ui16 * 3 + 1],
pValue[ui16 * 3 + 2]
);
APP_TRACE_INFO4(
"ble-card10: set led %ld above to #%02x%02x%02x\n",
ui16, ui16,
pValue[ui16 * 3], pValue[ui16 * 3],
pValue[ui16 * 3 + 1], pValue[ui16 * 3 + 1],
pValue[ui16 * 3 + 2] pValue[ui16 * 3 + 2]
); );
} }
epic_leds_update();
return ATT_SUCCESS;
default: default:
APP_TRACE_INFO1( APP_TRACE_INFO1("ble-card10: unsupported handle: %x\n", handle);
"ble-card10: unsupported characteristic: %c\n", handle
);
return ATT_ERR_HANDLE; return ATT_ERR_HANDLE;
} }
} }
......
...@@ -396,9 +396,7 @@ static uint8_t writeCallback( ...@@ -396,9 +396,7 @@ static uint8_t writeCallback(
connId, handle, operation, offset, len, pValue, pAttr connId, handle, operation, offset, len, pValue, pAttr
); );
default: default:
LOG_ERR("filetrans", LOG_ERR("filetrans", "unsupported handle: %x\n", handle);
"unsupported characteristic: %c\n",
handle);
return ATT_ERR_HANDLE; return ATT_ERR_HANDLE;
} }
} }
......
...@@ -119,7 +119,7 @@ int main(void) ...@@ -119,7 +119,7 @@ int main(void)
(const char *)"BLE", (const char *)"BLE",
configMINIMAL_STACK_SIZE * 10, configMINIMAL_STACK_SIZE * 10,
NULL, NULL,
tskIDLE_PRIORITY + 1, tskIDLE_PRIORITY + 3,
NULL) != pdPASS) { NULL) != pdPASS) {
LOG_CRIT("startup", "Failed to create %s task!", "BLE"); LOG_CRIT("startup", "Failed to create %s task!", "BLE");
abort(); abort();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment