ea7kir
(Michael Naylor)
1
Using: raspOS Bullseye 64 bit Lite
pi@rp64lite:~ $ swift
Welcome to Swift version 5.5 (swift-5.5-RELEASE).
Type :help for assistance.
1> for i in 1...100_000 {
2. print(i)
3. }
This simple piece of code makes all the LEDs on my router flash. This doesn't make any sense to me, so please can someone explain why this is happening and how to prevent it?
jberry
(James Berry)
2
I presume you’re connected to the pi through your network when you run that program. So the program output is being returned through your network, and router, to you. And thus the LEDs flash on your router when they see that trafffic.
3 Likes
ea7kir
(Michael Naylor)
3
Thank you @jberry and you are absolutely correct. I access the Pi from Terminal on my Mac. How stupid of me for not thinking of that myself.