getTipResistanceX10()

This commit is contained in:
Ben V. Brown
2022-07-18 22:54:56 +10:00
parent 8db0bbf4a5
commit aac42199f6
5 changed files with 10 additions and 1 deletions

View File

@@ -16,6 +16,9 @@ extern "C" {
// Can be used to check any details for the power system
void power_check();
// Return the tip resistance in x10 ohms (8.5 -> 85)
uint8_t getTipResistanceX10();
#ifdef __cplusplus
}
#endif

View File

@@ -17,3 +17,5 @@ void power_check() {
}
bool getIsPoweredByDCIN() { return false; }
uint8_t getTipResistanceX10() { return TIP_RESISTANCE; }

View File

@@ -288,3 +288,5 @@ uint64_t getDeviceID() {
//
return HAL_GetUIDw0() | ((uint64_t)HAL_GetUIDw1() << 32);
}
uint8_t getTipResistanceX10() { return TIP_RESISTANCE; }

View File

@@ -93,3 +93,5 @@ void setStatusLED(const enum StatusLED state) {}
uint8_t preStartChecks() { return 0; }
uint64_t getDeviceID() { return dbg_id_get(); }
uint8_t getTipResistanceX10() { return TIP_RESISTANCE; }