Figured out what author was going for from a gist
This commit is contained in:
parent
c41f6ddcc0
commit
9ea79f756a
|
@ -71,7 +71,7 @@ int triggerWeather(String command) {
|
|||
bool strike = false;
|
||||
if (command==String("f")) {
|
||||
strike = true;
|
||||
} else if (random(100) < chance) {
|
||||
} else if (random(chance) == 0) {
|
||||
strike = true;
|
||||
}
|
||||
if (strike) {
|
||||
|
|
|
@ -93,7 +93,7 @@ void loop() {
|
|||
String trigger = readFromBluetooth();
|
||||
if (trigger==String("f")) {
|
||||
strike = true;
|
||||
} else if (random(100) < chance) {
|
||||
} else if (random(chance) == 0) {
|
||||
strike = true;
|
||||
}
|
||||
if (strike) {
|
||||
|
|
Loading…
Reference in New Issue