![](/media/cache/profiles/be6b2f6b6e7d72e528c6123f2cd5568e.jpg.50x50_q85.jpg)
Example for AV_MQTT
Revision 7:66ff43202f50, committed 2013-08-13
- Comitter:
- Nim65s
- Date:
- Tue Aug 13 13:53:16 2013 +0000
- Parent:
- 6:761a452a8a77
- Commit message:
- LEDs' endianness inverted
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Aug 13 13:38:27 2013 +0000 +++ b/main.cpp Tue Aug 13 13:53:16 2013 +0000 @@ -10,9 +10,9 @@ void callback(const char *key, const char *value) { int led = atoi(value); - l2 = (led & 4) >> 2; + l4 = (led & 4) >> 2; l3 = (led & 2) >> 1; - l4 = led & 1; + l2 = led & 1; } int main() {