mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-01 10:06:49 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -27,7 +27,7 @@
|
|||
using namespace portapack;
|
||||
|
||||
namespace serializer {
|
||||
|
||||
|
||||
/* Raw: 00110110100111
|
||||
* NRZ-L: 00110110100111
|
||||
* NRZ-M: 00100100111010 (1 = transition)
|
||||
|
@ -40,12 +40,12 @@ namespace serializer {
|
|||
*/
|
||||
|
||||
size_t symbol_count(const serial_format_t& serial_format) {
|
||||
size_t count;
|
||||
|
||||
count = 1 + serial_format.data_bits + serial_format.stop_bits; // Start + data + stop
|
||||
if (serial_format.parity) count++;
|
||||
|
||||
return count;
|
||||
size_t count;
|
||||
|
||||
count = 1 + serial_format.data_bits + serial_format.stop_bits; // Start + data + stop
|
||||
if (serial_format.parity) count++;
|
||||
|
||||
return count;
|
||||
};
|
||||
|
||||
} /* namespace serializer */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue