oss-slu / Mouser

GNU General Public License v3.0
1 stars 7 forks source link

adjusting modules to reflect changes in serial port setting #203

Closed stanleyyang2001 closed 6 months ago

stanleyyang2001 commented 7 months ago

Fixes #188

What was changed?

Main, serial port setting, serial port controller, experiment menu, and map rfid is changes so that map rfid, serial port setting, and experiment menu now accepts a serial port controller created in main.

Why was it changed?

It was changed because there's a need for serial port setting to connect to serial port controller so that whenever there's a change made to the setting of the serial port, it'll be reflected to the controller so that it'll take action to use the new setting.

How was it changed?

To make the change possible, observer pattern is used such that whenever there's a change to the setting, serial port setting will call a function in the controller that change the current setting of serial port to the new setting.

loganwyas commented 6 months ago

@stanleyyang2001 Which issue does this fix? Make sure to include that in the original comment.

stanleyyang2001 commented 6 months ago

@loganwyas Fixed now.