@@ -124,13 +124,6 @@ void identifyBoard()
124
124
125
125
if (productVariant == RTK_UNKNOWN)
126
126
{
127
- // TODO remove once v1.1 Flex has ID resistors
128
- if (i2c_0 == nullptr )
129
- i2c_0 = new TwoWire (0 );
130
- int pin_SDA = 15 ;
131
- int pin_SCL = 4 ;
132
- i2c_0->begin (pin_SDA, pin_SCL); // SDA, SCL
133
-
134
127
// Use ADC to check the resistor divider
135
128
int pin_deviceID = 35 ;
136
129
uint16_t idValue = analogReadMilliVolts (pin_deviceID);
@@ -163,19 +156,13 @@ void identifyBoard()
163
156
else if (idWithAdc (idValue, 10.0 , 20.0 , 8.5 ))
164
157
productVariant = RTK_FLEX;
165
158
166
- // 0x3C - SSD1306 OLED Driver found in RTK Flex
167
- // TODO remove once v1.1 hardware has ID resistors
168
- // else if (i2cIsDevicePresent(i2c_0, 0x3C) == true || i2cIsDevicePresent(i2c_0, 0x10) == true)
169
- // productVariant = RTK_FLEX;
170
-
171
159
// Postcard: 3.3/10 --> 2371mV < 2481mV < 2582mV (8.5% tolerance)
172
160
else if (idWithAdc (idValue, 3.3 , 10 , 8.5 ))
173
161
productVariant = RTK_POSTCARD;
174
-
175
- productVariant = RTK_FLEX; // TODO remove hard override
176
-
177
- // TODO remove once v1.1 Flex has ID resistors
178
- i2c_0->end ();
162
+
163
+ #ifndef NOT_FACET_FLEX
164
+ productVariant = RTK_FLEX; // TODO remove once v1.1 Flex has ID resistors
165
+ #endif
179
166
}
180
167
181
168
if (ENABLE_DEVELOPER)
@@ -1445,7 +1432,7 @@ void beginButtons()
1445
1432
// Avoid using the button library
1446
1433
if (present.gpioExpanderButtons == true )
1447
1434
{
1448
- if (beginGpioExpanderButtons (0x20 ) == false )
1435
+ if (beginGpioExpanderButtons (0x20 ) == false ) // This updates online.gpioExpanderButtons
1449
1436
{
1450
1437
systemPrintln (" Portability Shield not detected" );
1451
1438
0 commit comments