Skip to content

Commit

Permalink
Disable fake RPM reading
Browse files Browse the repository at this point in the history
  • Loading branch information
noisymime committed Oct 7, 2024
1 parent 4914d24 commit e875345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@

//#include <Arduino.h>
#include <ESPAsyncWebServer.h>
//#include <Arduino_JSON.h>
#include <ArduinoJson.h>

#define PRODUCT_NAME "AirBear"
#define FIRMWARE_VERSION "0.0.9"

#define FAKE_RPM
//#define FAKE_RPM

#define BIT_SET(a,b) ((a) |= (1U<<(b)))
#define BIT_CLEAR(a,b) ((a) &= ~(1U<<(b)))
Expand Down
3 changes: 3 additions & 0 deletions src/serialParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
uint16_t tempRPM = 0;
uint8_t serialECURequestQueueSize = 0;

//#define DEBUG_SERIAL_PARSER

void requestSerialData()
{
#ifdef DEBUG_SERIAL_PARSER
Expand Down Expand Up @@ -122,6 +124,7 @@ void initSerialData()
readings_JSON["MAP"] = 0;
readings_JSON["IAT"] = 0;
readings_JSON["CLT"] = 0;
readings_JSON["TPS"] = 0;
readings_JSON["correction_voltage"] = 0;
readings_JSON["Battery_Voltage"] = 0;
readings_JSON["AFR1"] = 0;
Expand Down

0 comments on commit e875345

Please sign in to comment.