mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Merge remote-tracking branch 'upstream/dev' into magic
This commit is contained in:
@@ -30,7 +30,7 @@ static uint16_t str_display_len(const char *const str) {
|
||||
|
||||
uint16_t ScrollMessage::messageWidth(const char *message) { return FONT_12_WIDTH * str_display_len(message); }
|
||||
|
||||
bool ScrollMessage::drawUpdate(const char *message, uint32_t currentTick) {
|
||||
bool ScrollMessage::drawUpdate(const char *message, TickType_t currentTick) {
|
||||
bool lcdRefresh = false;
|
||||
|
||||
if (messageStart == 0) {
|
||||
|
||||
@@ -49,7 +49,7 @@ uint32_t availableW10(uint8_t sample) {
|
||||
// R = R*10
|
||||
// P therefore is in V^2*100/R*10 = W*10.
|
||||
uint32_t v = getInputVoltageX10(getSettingValue(SettingsOptions::VoltageDiv), sample); // 100 = 10v
|
||||
uint32_t tipResistance = getTipResitanceX10();
|
||||
uint32_t tipResistance = getTipResistanceX10();
|
||||
if (tipResistance == 0) {
|
||||
return 100; // say 100 watt to force scale down
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user