X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmy9221%2Fmy9221.cxx;h=91e1f54cbadf7f735bed15b9b942f43ca52383e2;hb=d15bf22536e4daed5bc0aca0f4ce7f26d2517b9b;hp=51a6ede101be21eac1f7caf1b95cabfd1de8eb6b;hpb=731704eaac622dd7cdd12b6ba54092d9604b3f1a;p=contrib%2Fupm.git diff --git a/src/my9221/my9221.cxx b/src/my9221/my9221.cxx index 51a6ede..91e1f54 100644 --- a/src/my9221/my9221.cxx +++ b/src/my9221/my9221.cxx @@ -46,7 +46,7 @@ MY9221::MY9221 (uint8_t di, uint8_t dcki) { fprintf(stderr, "Are you sure that pin%d you requested is valid on your platform?", di); exit(1); } - + // set direction (out) error = mraa_gpio_dir(m_clkPinCtx, MRAA_GPIO_OUT); if (error != MRAA_SUCCESS) { @@ -99,7 +99,7 @@ MY9221::lockData () { mraa_result_t error = MRAA_SUCCESS; error = mraa_gpio_write (m_dataPinCtx, LOW); usleep(100); - + for(int idx = 0; idx < 4; idx++) { error = mraa_gpio_write (m_dataPinCtx, HIGH); error = mraa_gpio_write (m_dataPinCtx, LOW);