| 82 | #define PREFERENCES_BUS_INDEX_KEY "bus" |
| 83 | |
| 84 | void I2cScannerApp::setLastBusIndex(int32_t index) { |
| 85 | auto prefs = Preferences("i2c_scanner"); |
| 86 | prefs.putInt32(PREFERENCES_BUS_INDEX_KEY, index); |
| 87 | } |
| 88 | |
| 89 | int32_t I2cScannerApp::getLastBusIndex() { |
| 90 | auto prefs = Preferences("i2c_scanner"); |
nothing calls this directly
no test coverage detected