Skip to content
Snippets Groups Projects
Commit 665db239 authored by Alexander Mandera's avatar Alexander Mandera
Browse files

Fix compiler error

parent dccab942
No related branches found
No related tags found
No related merge requests found
...@@ -201,7 +201,7 @@ int LEReadReg32( void * dev, uint8_t reg_7_bit, uint32_t * commandresp ) ...@@ -201,7 +201,7 @@ int LEReadReg32( void * dev, uint8_t reg_7_bit, uint32_t * commandresp )
iOP }; iOP };
wch_link_command( devh, req, sizeof( req ), (int*)&transferred, rbuff, sizeof( rbuff ) ); wch_link_command( devh, req, sizeof( req ), (int*)&transferred, rbuff, sizeof( rbuff ) );
*commandresp = ( rbuff[4]<<24 ) | (rbuff[5]<<16) | (rbuff[6]<<8) | (rbuff[7]<<0); *commandresp = ( rbuff[4]<<24 ) | (rbuff[5]<<16) | (rbuff[6]<<8) | (rbuff[7]<<0);
if( transferred != 9 || resp[8] == 0x02 || resp[8] == 0x03 ) //|| resp[3] != reg_7_bit ) if( transferred != 9 || rbuff[8] == 0x02 || rbuff[8] == 0x03 ) //|| rbuff[3] != reg_7_bit )
{ {
fprintf( stderr, "Error setting write reg. Tell cnlohr. Maybe we should allow retries here?\n" ); fprintf( stderr, "Error setting write reg. Tell cnlohr. Maybe we should allow retries here?\n" );
fprintf( stderr, "RR: %d :", transferred ); fprintf( stderr, "RR: %d :", transferred );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment