@@ -837,7 +837,7 @@ void handleRoot() {
837
837
" <tr><th align=left>Uptime</th><td align=right>%02d:%02d:%02d</td></tr>\
838
838
<tr><th align=left>Free memory</th><td align=right>%u</td></tr>\
839
839
<tr><th align=left>Battery voltage</th><td align=right><font color=%s>%s</font></td></tr>"
840
- #if defined(USE_USB_HOST)
840
+ #if defined(USE_USB_HOST) && defined(ESP32)
841
841
" <tr><th align=left>USB client</th><td align=right>%s %s</td></tr>"
842
842
#endif /* USE_USB_HOST */
843
843
" </table>\
@@ -862,7 +862,7 @@ void handleRoot() {
862
862
<td align=left><input type=button onClick=\" location.href='/settings'\" value='Settings'></td>\
863
863
<td align=center><input type=button onClick=\" location.href='/about'\" value='About'></td>" ),
864
864
ThisAircraft.addr , SOFTRF_FIRMWARE_VERSION
865
- #if defined(USE_USB_HOST)
865
+ #if defined(USE_USB_HOST) && defined(ESP32)
866
866
" H"
867
867
#endif /* USE_USB_HOST */
868
868
#if defined(SOFTRF_ADDRESS)
@@ -878,7 +878,7 @@ void handleRoot() {
878
878
#endif /* ENABLE_AHRS */
879
879
UpTime .hours , UpTime .minutes , UpTime .seconds , SoC->getFreeHeap (),
880
880
low_voltage ? " red" : " green" , str_Vcc,
881
- #if defined(USE_USB_HOST)
881
+ #if defined(USE_USB_HOST) && defined(ESP32)
882
882
ESP32_USB_Serial.connected ? supported_USB_devices[ESP32_USB_Serial.index ].first_name : " " ,
883
883
ESP32_USB_Serial.connected ? supported_USB_devices[ESP32_USB_Serial.index ].last_name : " N/A" ,
884
884
#endif /* USE_USB_HOST */
0 commit comments