Sony's LANC camera control protocol project.
Dependencies: aconno_LANC aconno_bsp aconno_SEGGER_RTT
Diff: main.cpp
- Revision:
- 12:69dbd9ef58e8
- Parent:
- 11:e5f11b96088e
diff -r e5f11b96088e -r 69dbd9ef58e8 main.cpp --- a/main.cpp Thu Jul 12 16:51:44 2018 +0000 +++ b/main.cpp Tue Aug 28 11:11:12 2018 +0000 @@ -109,17 +109,17 @@ for(counter = 0; counter < 8; counter++) { - (params->data[0] & (1 << counter)) ? commandType[counter] = LANC_H : + (params->data[0] & (1 << 7 - counter)) ? commandType[counter] = LANC_H : commandType[counter] = LANC_L; } for(counter = 0; counter < 8; counter++) { - (params->data[0] & (1 << counter)) ? command[counter] = LANC_H : + (params->data[0] & (1 << 7 - counter)) ? command[counter] = LANC_H : command[counter] = LANC_L; } - //sendCommand(commandType, command); + sendCommand(commandType, command); return; }