| 492 | } |
| 493 | |
| 494 | bool AmsConfiguration::pinUsed(uint8_t pin, GpioConfig& config) { |
| 495 | if(pin == 0xFF) |
| 496 | return false; |
| 497 | return |
| 498 | pin == config.apPin || |
| 499 | pin == config.ledPin || |
| 500 | pin == config.ledPinRed || |
| 501 | pin == config.ledPinGreen || |
| 502 | pin == config.ledPinBlue || |
| 503 | pin == config.tempSensorPin || |
| 504 | pin == config.tempAnalogSensorPin || |
| 505 | pin == config.vccPin || |
| 506 | pin == config.ledDisablePin |
| 507 | ; |
| 508 | } |
| 509 | |
| 510 | bool AmsConfiguration::getGpioConfig(GpioConfig& config) { |
| 511 | EEPROM.begin(EEPROM_SIZE); |
nothing calls this directly
no outgoing calls
no test coverage detected