Added stop-condition before start-condition

Bp5758d does not support repeated-start-condition.
Therefore it overwrite the next register ('current range setup' of red-channel)

A stop-condition is always needed before next start-condition
This commit is contained in:
Christian Karsch 2022-10-17 21:01:25 +02:00 committed by GitHub
parent a9ba035474
commit 4ba3b58ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ bool Bp5758dSetChannels(void) {
if (cur_col_10[0]==0 && cur_col_10[1]==0 && cur_col_10[2]==0 && cur_col_10[3]==0 && cur_col_10[4]==0) {
Bp5758dStart(BP5758D_ADDR_SETUP);
Bp5758dWrite(BP5758D_DISABLE_OUTPUTS_ALL);
Bp5758dStop();
Bp5758dStart(BP5758D_ADDR_SLEEP);
Bp5758dStop();
bIsSleeping = true;