Naming and coding style convention, new linter tool. (#945)
* Makefile, Scripts: new linter * About: remove ID from IC * Firmware: remove double define for DIVC/DIVR * Scripts: check folder names too. Docker: replace syntax check with make lint. * Reformat Sources and Migrate to new file naming convention * Docker: symlink clang-format-12 to clang-format * Add coding style guide
This commit is contained in:
@@ -17,11 +17,11 @@ void irda_encoder_rc5_reset(void* encoder_ptr, const IrdaMessage* message) {
|
||||
IrdaCommonEncoder* common_encoder = encoder->common_encoder;
|
||||
irda_common_encoder_reset(common_encoder);
|
||||
|
||||
uint32_t* data = (void*) common_encoder->data;
|
||||
uint32_t* data = (void*)common_encoder->data;
|
||||
/* RC5 */
|
||||
*data |= 0x01; // start bit
|
||||
if (message->protocol == IrdaProtocolRC5) {
|
||||
*data |= 0x02; // start bit
|
||||
*data |= 0x01; // start bit
|
||||
if(message->protocol == IrdaProtocolRC5) {
|
||||
*data |= 0x02; // start bit
|
||||
}
|
||||
*data |= encoder->toggle_bit ? 0x04 : 0;
|
||||
*data |= (reverse(message->address) >> 3) << 3; /* address 5 bit */
|
||||
@@ -53,4 +53,3 @@ void irda_encoder_rc5_free(void* encoder_ptr) {
|
||||
free(encoder->common_encoder);
|
||||
free(encoder);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user