Skip to content

Commit

Permalink
all: fix main package in examples
Browse files Browse the repository at this point in the history
The package with the main function should always have the name main.
This was not the case in three packages.

This was silently allowed before, but since a TinyGo change
(tinygo-org/tinygo#1592) this now results in a
linker failure.

Perhaps this should result in a better error message in TinyGo. However,
the example code also needs to be fixed, so hence this PR.
  • Loading branch information
aykevl authored and deadprogram committed Jan 27, 2021
1 parent 8cb2269 commit 5d3ad4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/hcsr04/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package hcsr04
package main

import (
"machine"
Expand Down
2 changes: 1 addition & 1 deletion examples/ssd1331/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ssd1331
package main

import (
"machine"
Expand Down
2 changes: 1 addition & 1 deletion examples/ssd1351/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ssd1351
package main

import (
"machine"
Expand Down

0 comments on commit 5d3ad4b

Please sign in to comment.