Merge pull request #187 from larryho5/betaflight_12022016_tbs_release
- Solved sending huge spaces between bytes on BST
This commit is contained in:
commit
05f5dab607
|
@ -320,7 +320,7 @@ bool bstSlaveWrite(uint8_t* data) {
|
||||||
uint32_t bstMasterWriteTimeout = 0;
|
uint32_t bstMasterWriteTimeout = 0;
|
||||||
void bstMasterWriteLoop(void)
|
void bstMasterWriteLoop(void)
|
||||||
{
|
{
|
||||||
if(bstWriteDataLen != 0) {
|
while(bstWriteDataLen) {
|
||||||
if(bufferPointer == 0) {
|
if(bufferPointer == 0) {
|
||||||
bool scl_set = false;
|
bool scl_set = false;
|
||||||
if(BSTx == I2C1)
|
if(BSTx == I2C1)
|
||||||
|
|
|
@ -211,8 +211,8 @@ static cfTask_t cfTasks[TASK_COUNT] = {
|
||||||
[TASK_BST_READ_WRITE] = {
|
[TASK_BST_READ_WRITE] = {
|
||||||
.taskName = "BST_MASTER_WRITE",
|
.taskName = "BST_MASTER_WRITE",
|
||||||
.taskFunc = taskBstReadWrite,
|
.taskFunc = taskBstReadWrite,
|
||||||
.desiredPeriod = 1000000 / 500, // 500 Hz
|
.desiredPeriod = 1000000 / 100, // 100 Hz
|
||||||
.staticPriority = TASK_PRIORITY_HIGH,
|
.staticPriority = TASK_PRIORITY_IDLE,
|
||||||
},
|
},
|
||||||
|
|
||||||
[TASK_BST_MASTER_PROCESS] = {
|
[TASK_BST_MASTER_PROCESS] = {
|
||||||
|
|
Loading…
Reference in New Issue