MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / setLastBusIndex

Method setLastBusIndex

Tactility/Source/app/i2cscanner/I2cScanner.cpp:84–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82#define PREFERENCES_BUS_INDEX_KEY "bus"
83
84void I2cScannerApp::setLastBusIndex(int32_t index) {
85 auto prefs = Preferences("i2c_scanner");
86 prefs.putInt32(PREFERENCES_BUS_INDEX_KEY, index);
87}
88
89int32_t I2cScannerApp::getLastBusIndex() {
90 auto prefs = Preferences("i2c_scanner");

Callers

nothing calls this directly

Calls 2

PreferencesClass · 0.85
putInt32Method · 0.45

Tested by

no test coverage detected