1
0
forked from me/IronOS

Fix QC 20V support

This commit is contained in:
Ben V. Brown
2020-11-01 15:42:36 +11:00
parent 3538acb07d
commit f465d17bb3
4 changed files with 52 additions and 37 deletions

View File

@@ -34,3 +34,17 @@ uint8_t usb_pd_detect() {
return false;
}
bool getIsPoweredByDCIN() {
#ifdef MODEL_TS80
return false;
#endif
#ifdef MODEL_TS80P
return false;
#endif
#ifdef MODEL_TS100
return true;
#endif
}

View File

@@ -20,11 +20,11 @@
#define POW_QC
#define POW_DC
#define POW_QC_20V
#define ENABLE_QC2
#define TEMP_TMP36
#define ACCEL_BMA
#define HALL_SENSOR
#define HALL_SI7210
#define BATTFILTERDEPTH 32
#endif