Skip to content

Commit da9f67f

Browse files
Fixed MAC reverse byte order by adding new function to the ESP32SPI library calling the actual MAC address and providing a usage of the function in the webserver code within WSGISERVER. This time with line breaks at end to not break Travis.
1 parent 3fd6a12 commit da9f67f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

adafruit_esp32spi/adafruit_esp32spi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,4 +769,5 @@ def set_analog_write(self, pin, analog_value):
769769
resp = self._send_command_get_response(_SET_ANALOG_WRITE_CMD,
770770
((pin,), (value,)))
771771
if resp[0][0] != 1:
772-
raise RuntimeError("Failed to write to pin")
772+
raise RuntimeError("Failed to write to pin")
773+

examples/server/esp32spi_wsgiserver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,5 @@ def led_color(environ): # pylint: disable=unused-argument
215215
except (ValueError, RuntimeError) as e:
216216
print("Failed to update server, restarting ESP32\n", e)
217217
wifi.reset()
218-
continue
218+
continue
219+

0 commit comments

Comments
 (0)