Verified Commit fbde958f authored by João Magalhães's avatar João Magalhães 🎱
Browse files

fix: frequency decimal places issue

parent c443c107
Pipeline #1771 passed with stages
in 10 minutes and 36 seconds
......@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
*
* Frequency decimal places issue
## [0.4.1] - 2022-11-21
......
......@@ -20,7 +20,7 @@
"@parcel/transformer-typescript-tsc": "^2.8.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"emukit": "^0.3.0",
"emukit": "^0.4.0",
"nodemon": "^2.0.20",
"parcel": "^2.8.0",
"prettier": "^2.7.1",
......
......@@ -5,6 +5,7 @@ import {
Entry,
Feature,
Frequency,
FrequencySpecs,
PixelFormat,
RomInfo,
Size
......@@ -400,12 +401,12 @@ export class Chip8Emulator extends EmulatorBase implements Emulator {
this.trigger("frequency", value);
}
get frequencyUnit(): Frequency | null {
return Frequency.Hz;
}
get frequencyDelta(): number | null {
return 60;
get frequencySpecs(): FrequencySpecs {
return {
unit: Frequency.Hz,
delta: 60,
places: 0
};
}
get framerate(): number {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment