Using puts instead of p

This commit is contained in:
2023-03-24 11:29:07 +01:00
parent ad65a48289
commit 99c2f01094
3 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.local .local
.config .config
.project .project
*.pid

View File

@@ -28,7 +28,7 @@ class InSyncState < StatePattern::State
# did we reach the end of the frame? # did we reach the end of the frame?
if new_frame_starts(bytes,idx,sync_pattern_length) if new_frame_starts(bytes,idx,sync_pattern_length)
frame_lines = frame.split("\n") frame_lines = frame.split("\n")
p "------ FRAME -----" puts "--- FRAME ---"
# p frame_lines # p frame_lines
# p "##################" # p "##################"
reading = handle_frame(frame_lines) reading = handle_frame(frame_lines)

View File

@@ -6,6 +6,8 @@ services:
image: mysql image: mysql
volumes: volumes:
- /home/pcog/smartmeter/data:/var/lib/mysql - /home/pcog/smartmeter/data:/var/lib/mysql
ports:
- 3306:3306
environment: environment:
MYSQL_ROOT_PASSWORD: rootme MYSQL_ROOT_PASSWORD: rootme
MYSQL_DATABASE: smartmeter MYSQL_DATABASE: smartmeter