Fixed build errors

This commit is contained in:
Gunnar Skjold
2024-01-20 13:49:47 +01:00
parent f334847e82
commit afcc542e25
3 changed files with 4 additions and 4 deletions

View File

@@ -845,7 +845,7 @@ void handleUiLanguage() {
if(status == HTTP_CODE_OK) {
snprintf_P((char*) commonBuffer, BUF_SIZE_COMMON, PSTR("/translations-%s.json"), ui.language);
File file = LittleFS.open((char*) commonBuffer, FILE_WRITE);
File file = LittleFS.open((char*) commonBuffer, "w");
size_t written = http.writeToStream(&file);
file.close();
if(written > 0) {

View File

@@ -46,7 +46,7 @@ void PulseMeterCommunicator::getCurrentConfig(MeterConfig& meterConfig) {
void PulseMeterCommunicator::setupGpio() {
if(debugger->isActive(RemoteDebug::DEBUG)) debugger->printf_P(PSTR("Setting up Pulse Meter GPIO, rx: %d, tx: %d\n"), meterConfig.rxPin, meterConfig.txPin);
if(meterConfig.rxPin != NOT_A_PIN) {
pinMode(meterConfig.rxPin, meterConfig.rxPinPullup ? INPUT_PULLUP : INPUT_PULLDOWN);
pinMode(meterConfig.rxPin, meterConfig.rxPinPullup ? INPUT_PULLUP : INPUT);
}
if(meterConfig.txPin != NOT_A_PIN) {
pinMode(meterConfig.txPin, OUTPUT);