Tooling updates and modification suggested by clang-tidy

This commit is contained in:
Allen Hill
2023-09-02 22:30:22 -04:00
parent b9bae7a65f
commit 3e008f32eb
6 changed files with 304 additions and 7 deletions
+3 -2
View File
@@ -27,8 +27,9 @@
*/
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/sfr_defs.h>
#include <stdint.h>
#include "avclandrv.h"
#include "com232.h"
@@ -341,7 +342,7 @@ uint8_t AVCLAN_sendbitsi(const uint8_t *byte, int8_t len) {
int8_t len_mod8 = 8;
if (len & 0x7) {
len_mod8 = len & 0x7;
len_mod8 = (int8_t)(len & 0x7);
b <<= (uint8_t)(8 - len_mod8);
}
+4 -1
View File
@@ -24,9 +24,12 @@
*/
#include "com232.h"
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/sfr_defs.h>
#include <stdint.h>
#include "com232.h"
uint8_t RS232_RxCharBuffer[25], RS232_RxCharBegin, RS232_RxCharEnd;
uint8_t readkey;
+2
View File
@@ -26,6 +26,8 @@
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/sfr_defs.h>
#include <stdint.h>
#include "avclandrv.h"
#include "com232.h"