Crash protection. part I
This commit is contained in:
12
bc.h
12
bc.h
@@ -35,7 +35,7 @@
|
||||
#include <QDebug>
|
||||
#include <QObject> // Nötig für Q_GADGET/Q_ENUM Makros
|
||||
|
||||
namespace cbc
|
||||
namespace bc
|
||||
{
|
||||
[[maybe_unused]] constexpr static double UNLIMITED_SPEED_VALUE = 70; // Km/h
|
||||
// UNLIMITED_MIN_SPEED_VALUE = 30; // Km/h
|
||||
@@ -63,9 +63,10 @@ namespace cbc
|
||||
void delay_seconds( uint32_t );
|
||||
void delay_millis( uint32_t );
|
||||
void delay_micros( uint32_t );
|
||||
void processEventsFor(int milliseconds);
|
||||
|
||||
QString formatInt( int count, int len );
|
||||
} // namespace cbc
|
||||
} // namespace bc
|
||||
|
||||
// abbreviations:
|
||||
// SOC = State Of Charge
|
||||
@@ -102,6 +103,13 @@ struct BC
|
||||
|
||||
public:
|
||||
|
||||
enum class OpID : uint8_t
|
||||
{
|
||||
ReadValue,
|
||||
WriteValue,
|
||||
};
|
||||
Q_ENUM(OpID)
|
||||
|
||||
enum class ID : uint8_t
|
||||
{
|
||||
//{%Region Console}
|
||||
|
||||
Reference in New Issue
Block a user