Merge pull request #187 from larryho5/betaflight_12022016_tbs_release

- Solved sending huge spaces between bytes on BST
This commit is contained in:
borisbstyle 2016-02-13 09:24:12 +01:00
commit 05f5dab607
2 changed files with 3 additions and 3 deletions

View File

@ -320,7 +320,7 @@ bool bstSlaveWrite(uint8_t* data) {
uint32_t bstMasterWriteTimeout = 0;
void bstMasterWriteLoop(void)
{
if(bstWriteDataLen != 0) {
while(bstWriteDataLen) {
if(bufferPointer == 0) {
bool scl_set = false;
if(BSTx == I2C1)

View File

@ -211,8 +211,8 @@ static cfTask_t cfTasks[TASK_COUNT] = {
[TASK_BST_READ_WRITE] = {
.taskName = "BST_MASTER_WRITE",
.taskFunc = taskBstReadWrite,
.desiredPeriod = 1000000 / 500, // 500 Hz
.staticPriority = TASK_PRIORITY_HIGH,
.desiredPeriod = 1000000 / 100, // 100 Hz
.staticPriority = TASK_PRIORITY_IDLE,
},
[TASK_BST_MASTER_PROCESS] = {