Sony's LANC camera control protocol project.
Dependencies: aconno_LANC aconno_bsp aconno_SEGGER_RTT
Revision 12:69dbd9ef58e8, committed 2018-08-28
- Comitter:
- jurica238814
- Date:
- Tue Aug 28 11:11:12 2018 +0000
- Parent:
- 11:e5f11b96088e
- Commit message:
- Work in progress.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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; }